[
https://issues.apache.org/jira/browse/AIRAVATA-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcus Christie updated AIRAVATA-2326:
--------------------------------------
Affects Version/s: 0.17
> PGA: handle multiple file uploads that together exceed post_max_size
> --------------------------------------------------------------------
>
> Key: AIRAVATA-2326
> URL: https://issues.apache.org/jira/browse/AIRAVATA-2326
> Project: Airavata
> Issue Type: Bug
> Affects Versions: 0.17
> Reporter: Marcus Christie
> Assignee: Marcus Christie
>
> AIRAVATA-1397 added handling for when files are uploaded that exceed
> upload_max_filesize. However it's possible for multiple files to not exceed
> upload_max_filesize individually but when combined together do exceed the
> post_max_size.
> Zhong ran into this problem with uploading a couple large files as inputs to
> the dREG application.
> One problem with post_max_size is that when it is exceed PHP provides only an
> empty $_POST variable. So it is pretty hard to gracefully handle when it
> happens.
> That said, I think there are a couple of things that can be done:
> * we can detect when post_max_size is exceed and when it is we can at least
> display an error message to the user. Right now they just get dumped to the
> home page without any idea that anything went wrong.
> * We currently have JavaScript to detect when a file exceeds
> upload_max_filesize. We could also add JavaScript to run before form
> submission to check to check all of the files, add up their combined file
> size and compare with post_max_size
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)