Bug #8632
closedError uploading 90MB file to closed Commons Group
0%
Description
I tried to upload a 90MB .wav file to the close Core 1 Commons Group (https://commons.gc.cuny.edu/groups/itp-core-1-fall-2017/documents/). The progress percentage went from 0 to 100%, and then the page reloaded, but the the file wasn't there. I tried refreshing the page, and it didn't make a difference. I have tried three times, and each time the same error. Using Chrome on MacOS. File is located here, if that matters: https://www.dropbox.com/s/tovcdgjrlfa843p/workshop-on-workshops.wav?dl=0
Files
Updated by Michael Mandiberg about 7 years ago
Maybe there is a file limit...? If so, it wasn't stated. And is confusing that it would proceed with the upload, only to reject b/c too large.
Updated by Matt Gold about 7 years ago
- Category name set to Group Files
- Status changed from New to Assigned
- Assignee set to Boone Gorges
Hi Michael -- Boone will likely comment soon, but until he does, I wanted to point you to this recent ticket -- https://redmine.gc.cuny.edu/issues/7972
Updated by Boone Gorges about 7 years ago
- Target version set to 1.11.11
Our server is configured to forbid uploads larger than 64MB. It might be possible to work with IT to increase this, but doing so will likely introduce other problems (both security issues and performance issues). So, in the absence of a regular need to upload files like this, I'd recommend against it.
I agree it's weird behavior to allow the file to be uploaded, only to be rejected without error. At the very least, we should show an error after failure. Better: show a notice when we detect that the file is too large, before attempting to upload. I'll take a look at this.
Updated by Boone Gorges about 7 years ago
- File Screenshot_2017-08-30_15-26-19.png Screenshot_2017-08-30_15-26-19.png added
- Status changed from Assigned to Reporter Feedback
Here's a first pass https://github.com/cuny-academic-commons/cac/commit/d6e83e74e7d3e46596c5e4fd721722569a0062cb See screenshot.
When the file is larger than 50MB, the form is disabled, and the notice shown. It's reenabled and the notice is hidden when the file is small enough. Does this seem OK?