Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Download file content from server via Volley
Hi!
I tried to download file from liferay server with Volley.
I create the url like this: http://localhost:8080/documents/GroupId/FolderId/FileName/UUID, when I try to add this url to Volley it always give me the login site html as response. In browse redirects to login page.
It must be work without authentication!
When I create an url for images like: http://localhost:8080/documents/GroupId/UUID, It works fine, the image is shown by the browser
How can I download the file content?
Thanks
I tried to download file from liferay server with Volley.
I create the url like this: http://localhost:8080/documents/GroupId/FolderId/FileName/UUID, when I try to add this url to Volley it always give me the login site html as response. In browse redirects to login page.
It must be work without authentication!
When I create an url for images like: http://localhost:8080/documents/GroupId/UUID, It works fine, the image is shown by the browser
How can I download the file content?
Thanks
Can you post it in the general forum? It's related to permissions.
You're right! Thank you, the permission wasn't added to guest user. It works!
Adding the oauth2 header to the request should do the trick, make sure the application has the download documents and images scope is included
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™