-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Files Download -> URI too long #4715
Comments
@icewind1991 any idea why it uses GET? |
GET is used because downloading files isn't done by ajax but by redirecting the browser to the download url |
@schiesbn if I recall you added a fix for this - right? THX |
There is a fix on master that fixes the "select all files" and either sends "allfiles=true" in the URL or downloads the parent folder. In the future we should use POST when downloading multiple files. |
@PVince81 Is this fixed? |
It is partially fixed. I'd say let's keep it, maybe there's a way to do this with a POST call. |
@icewind1991 pointed out that GET is used because of the redirect, but it should be possible with other techniques like using a hidden form to POST to a separate window / iframe to trigger download. |
Let's address this in the scope of 8.2 as we plan to touch the files app with respect to operate via webdav |
related to owncloud/gallery/issues/159 |
Using Webdav won't help with this. We still need a special endpoint (webdav or not) that accepts POST values instead of GET for the zip file download. |
Moving to webdav for downloads in 9.0, changing milestone to 9.0. CC @cmonteroluque |
nod |
Still an issue in 9.0. |
I wonder if a REPORT request would be adequate for this... |
Requires zip endpoint to download multiple files: #17014 |
This is not fixable without introducing new APIs/endpoints, moving to 9.2. |
Looks like we'd rather need a special "POST" endpoint where the list of files can be posted. This doesn't sounds very Webdav-y or REST-y. Needs further research. |
Can we just have a good error message or difficult/impossible? |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io.) |
This happens with owncload 5 until the latest 5.0.10
When you mark too many files (like 300) at once for download, it results in a too long URI.
With Firefox you get:
request failed: URI too long (longer than 8190)
With Internet Explorer you get an ugly owncloud error message "cloud not found" and a list of all files in the array.
owncloud.log:
[...]5982.JPG","IMG_5983): failed to open stream:File name too long at /var/www/owncloud/lib/files/storage/local.php#146","level":2,"time":1378210282}
This is possible due to the request being submitted via GET and not by POST.
If this is by design, the error should be catched (too many files, try to use a folder instead)
The text was updated successfully, but these errors were encountered: