RE: Download file content from server via Volley

László Tóth, modified 5 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
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
thumbnail
Javier Gamarra, modified 5 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Can you post it in the general forum? It's related to permissions.
László Tóth, modified 5 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
You're right! Thank you, the permission wasn't added to guest user. It works!
thumbnail
Victor Galan, modified 5 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts
Adding the oauth2 header to the request should do the trick, make sure the application has the download documents and images scope is included