You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
shekhar parmar
4 years agoExplorer | Level 3
Regarding public url for uploaded image.
Hello,
We are using the laraval framework, where we upload the image on my Dropbox project folder, but when we want to fetch this image to show on display we get the array with the keys of "path_display", "path_lower", "name" etc see the response array below.
=================================================================================================
array(3){ [ "entries" ]=>array(4){ [ 0 ]=>array(11){ [ ".tag" ]=>string(4)"file"[ "name" ]=>string(44)"8D2NSsaMckdqsaYXjuJmdgXURrzfVC7uF4DQDqEv.png"[ "path_lower" ]=>string(59)"/shekharparmar/8d2nssamckdqsayxjujmdgxurrzfvc7uf4dqdqev.png"[ "path_display" ]=>string(59)"/ShekharParmar/8D2NSsaMckdqsaYXjuJmdgXURrzfVC7uF4DQDqEv.png"[ "id" ]=>string(25)"id:NxkBV1c4p0QAAAAAAAAAKA"[ "client_modified" ]=>string(20)"2021-11-10T04:23:28Z"[ "server_modified" ]=>string(20)"2021-11-10T04:23:29Z"[ "rev" ]=>string(21)"5d067968709db81e486e1"[ "size" ]=>int(188998)[ "is_downloadable" ]=>bool(true)[ "content_hash" ]=>string(64)"5d3edff0b0f32249cb31d8f6b21c25a0eeb9f17d124e7e46c1392a5a4aecb172" }[ 1 ]=>array(11){ [ ".tag" ]=>string(4)"file"[ "name" ]=>string(44)"xbkeEZhSHm9C9xMQCHXiHpEHJEFjs9Wjt65JnqYF.png"[ "path_lower" ]=>string(59)"/shekharparmar/xbkeezhshm9c9xmqchxihpehjefjs9wjt65jnqyf.png"[ "path_display" ]=>string(59)"/ShekharParmar/xbkeEZhSHm9C9xMQCHXiHpEHJEFjs9Wjt65JnqYF.png"[ "id" ]=>string(25)"id:NxkBV1c4p0QAAAAAAAAAKg"[ "client_modified" ]=>string(20)"2021-11-10T04:25:21Z"[ "server_modified" ]=>string(20)"2021-11-10T04:25:21Z"[ "rev" ]=>string(21)"5d0679d3e8bb481e486e1"[ "size" ]=>int(208125)[ "is_downloadable" ]=>bool(true)[ "content_hash" ]=>string(64)"38b63b5427d323bba27547cc1efa17a1d67520d5cfe1495e66c8c13bb62c29a5" }[ 2 ]=>array(11){ [ ".tag" ]=>string(4)"file"[ "name" ]=>string(44)"MMq4N0PDU6fKGThptgveQ9MqYcjWd0bdVw6GJtMU.png"[ "path_lower" ]=>string(59)"/shekharparmar/mmq4n0pdu6fkgthptgveq9mqycjwd0bdvw6gjtmu.png"[ "path_display" ]=>string(59)"/ShekharParmar/MMq4N0PDU6fKGThptgveQ9MqYcjWd0bdVw6GJtMU.png"[ "id" ]=>string(25)"id:NxkBV1c4p0QAAAAAAAAALQ"[ "client_modified" ]=>string(20)"2021-11-10T05:44:39Z"[ "server_modified" ]=>string(20)"2021-11-10T05:44:39Z"[ "rev" ]=>string(21)"5d068b8d2dbc581e486e1"[ "size" ]=>int(208125)[ "is_downloadable" ]=>bool(true)[ "content_hash" ]=>string(64)"38b63b5427d323bba27547cc1efa17a1d67520d5cfe1495e66c8c13bb62c29a5" }[ 3 ]=>array(11){ [ ".tag" ]=>string(4)"file"[ "name" ]=>string(44)"i8AC03qZAxXdAn7XxI3hVQcWOARBEbmmrDc3RVf6.png"[ "path_lower" ]=>string(59)"/shekharparmar/i8ac03qzaxxdan7xxi3hvqcwoarbebmmrdc3rvf6.png"[ "path_display" ]=>string(59)"/ShekharParmar/i8AC03qZAxXdAn7XxI3hVQcWOARBEbmmrDc3RVf6.png"[ "id" ]=>string(25)"id:NxkBV1c4p0QAAAAAAAAALg"[ "client_modified" ]=>string(20)"2021-11-10T10:06:42Z"[ "server_modified" ]=>string(20)"2021-11-10T10:06:42Z"[ "rev" ]=>string(21)"5d06c620261c981e486e1"[ "size" ]=>int(276822)[ "is_downloadable" ]=>bool(true)[ "content_hash" ]=>string(64)"78f71ba0a8790b04dad09ac78e4edbd3c3d7a00a0daa26807ca9bcb4337a6873" } }[ "cursor" ]=>string(216)"AAGaBEN5arsirsVmiITnWg7a4xkR9wY7fCljTIfmBdLEoXOAFz5PhwqKoxU8XUnU3DsGUbav99LGsmwTNcmpf3v1_QUZ_BkmHOk_AyHdCxdriEEp2YcY5-0LvqK4r-fy0K1DjKIA4nqFMp_SnzpDjlhrtNfNCP5vxWYl7vNsFSal5Jnqe26sffhNTV-ENnUGN7oG6LTd6CAaNQnaG70Djnd4"[ "has_more" ]=>bool(false) }
============================================================================================
But image not able to open with this path, but when we copy and paste URL to new tab then the image open on Dropbox, so please share the solution for show the image on our project laraval how we can show this.
See the break image:-
And the URL we get from API:-
Thanks in advance.
- Greg-DBDropbox Staff
The output you shared here appears to be from /2/files/list_folder[/continue], which only returns file/folder metadata, but not any actual file data. To access actual file data, e.g., to display it in your app, you can instead use /2/files/download, to download the original file data, or /2/files/get_thumbnail_v2, to download a thumbnail version of an image file.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 11 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!