php5filter:在大于~7961字节的文件上不断获取UPLOAD_ERR_PARTIAL

时间:2015-08-19 14:09:02

标签: php html apache2 php-5.6

当我上传大于7961字节的文件(是的不是MB,不是KB,只是字节)时,我得到UPLOAD_ERR_PARTIAL。有时限制有点像7967B等等。我完全相信我的php.ini中有这个(我通过运行phpini()来检查它):

public class JiraRest {
public String createissue(Integer projectid, Integer issuetypeid, String summary, String description)
        throws JSONException, IOException, URISyntaxException, HttpException {
    JSONObject fields = new JSONObject();
    fields.put("project", new JSONObject().put("id", projectid.toString()));
    fields.put("issuetype", new JSONObject().put("id", issuetypeid.toString()));
    fields.put("summary", "test");
    fields.put("customfield_10004", "testdvf");
    //fields.put("description", "this is a test.Kindly ignore!");

    JSONObject issue = new JSONObject();
    issue.put("fields", fields);
    System.out.println(issue);

    StringEntity se = new StringEntity(issue.toString());
    se.setContentType("application/json");
    HttpClient client = new DefaultHttpClient();
    HttpPost post = new HttpPost("https://jira.endurance.com/rest/api/latest/issue?os_username=abc&os_password=xyz");
    post.setEntity(se);
    post.addHeader("Accept", "*/*");
    post.addHeader("Connection", "keep-alive");
    HttpResponse response = client.execute(post);

    String json_string = EntityUtils.toString(response.getEntity());
    System.out.println(json_string);
    JSONObject obj = new JSONObject(json_string);
    return obj.getString("key");

}}

我试图增加所有值,但没有效果。 当文件较小时,上传工作正常。

我的配置是:apache2,apache2-mod-php5filter,php5 5.6.9。

Apache post_max_size = 8M upload_max_filesize = 2M max_execution_time = 30 memory_limit = 128M file_uploads = On tells.nothing。我已设置error.log

感谢您的回答。

0 个答案:

没有答案