[ 
https://issues.apache.org/jira/browse/AIRAVATA-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15828718#comment-15828718
 ] 

Marcus Christie edited comment on AIRAVATA-1397 at 1/18/17 8:24 PM:
--------------------------------------------------------------------

Just to document, through experimentation I've determined that 
upload_max_filesize is applied per file instead of to all of the files uploaded 
in a POST.  For example, if upload_max_filesize is 10MB, then the user can 
upload 4 5MB files (total size is 20MB > 10MB), but the user can't upload a 
single 12MB file.

Also the file upload error codes are documented here: 
http://php.net/manual/en/features.file-upload.errors.php. Right now the error 
message displayed to the user just includes the error code, which isn't super 
friendly for the user, but at least if the user communicates the error code to 
an administrator they can figure out what the problem was.  I'm also hoping 
with the client side detection and other changes I'm making that a user would 
only very rarely upload a file that is too large.



was (Author: marcuschristie):
Just to document, through experimentation I've determined that 
upload_max_filesize is applied per file instead of to all of the files uploaded 
in a POST.  For example, if upload_max_filesize is 10MB, then the user can 
upload 4 5MB files (total size is 20MB > 10MB), but the user can't upload a 
single 12MB file.

> PGA gateway needs to gracefully handle attempts to upload files that are too 
> large.
> -----------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-1397
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-1397
>             Project: Airavata
>          Issue Type: Improvement
>            Reporter: Marlon Pierce
>            Assignee: Marcus Christie
>             Fix For: 0.17
>
>
> This is mostly a PHP problem.  File upload limits are specified in the 
> php.ini file (typically, /etc/php.ini).  The parameters upload_max_filesize 
> and post_max_size need to be modified to increase the size. 
> If post_max_size is exceeded, the operation will fail silently: PHP doesn't 
> complain, and PGA will not call the airavata clients.  If upload_max_filesize 
> is exceeded but not the post size limit, you will get errors.  It is 
> advisable to change both (as documented in the PGA's README.md file) and to 
> keep both the same value.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to