-
Notifications
You must be signed in to change notification settings - Fork 186
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
downloading a folder or multiple files with an android browser should return a ZIP file #9399
Comments
the api MUST allow a query parameter for the output format |
blocking: owncloud/web#11080 |
Is that the way to go? From what I have seen the existing code could also be modified to provide ZIP for Windows/Android/iOS/MacOS with tar as fallback (assuming it's a Linux client), which may be the "easier" solution? |
Related web issue is about providing zip files on web for all sort of user-agents. So this is the way to go. |
We decided to switch the default to Any objections against using the |
Much objections. Please just use the query Params. There are designed for that use case |
accept header sounds reasonable |
We build easy to use and document APIs. This is adding a unnecessary complex layer. |
Accept header is an integral part of the http standard which is the basis for REST. But I don't care much. Just sharing perspectives. 🤷 |
A lot of out dated API designs are based on http |
Just leaving some thoughts here
The key point is "understand". This means that the client could do some preprocessing / analysis of the file if the server sends it in the requested format. If the client receives the content in a different / unexpected format, it could cause problems in the client. For our particular case, I don't think the client needs to care about the specific format because it just needs to save whatever stream of bytes it receives. Our client doesn't need to "understand" the content. |
🙏 |
@jvillafanez sorry I don't get it. Is that a +1 for the |
I'd vote for the In addition, the |
Is your feature request related to a problem? Please describe.
When trying to download multiple files with an browser on android, ocis presents a TAR file, I tried it on multiple phones and every time I had to install an extra app to open TAR files
Describe the solution you'd like
download the data as a ZIP file when requesting with Android
Describe alternatives you've considered
always download the data as a ZIP file, regardless of the
OR
make it configurable for the admin
Additional context
code path in question: https://github.com/cs3org/reva/blob/6748a5ff45e9a46b58af1f14421be150e88f8e3a/internal/http/services/archiver/handler.go#L254-L270
The text was updated successfully, but these errors were encountered: