Update a gallery webpage via Dropbox?

独自空忆成欢 提交于 2019-12-24 00:56:30

问题


I'd like to know if the following situation and scripts are at all possible:

I'm looking to have a photo-gallery (Javascript) webpage that will display in order of the latest added to the Dropbox folder (PHP or Python?).

That is, when someone adds a picture to the Dropbox folder, there is a script on the webpage that will check the Dropbox folder and then embed those images onto the webpage via the newest added and the webpage will automatically be updated.

Is it at all possible to link to a Dropbox folder via a webpage? If so, how would I best go about using scripts to automate the process of updating the webpage with new content?

Any and all help is very appreciated, thanks!


回答1:


If you can install the DropBox client on the webserver then it would be simple to let it sync your folder and then iterate over the contents of the folder with a programming language (PHP, Python, .NET etc) and produce the gallery page. This could be done every time the page is requested or as a scheduled job which recreayes a static page. This is all dependent on you having access to install the client on your server.




回答2:


You can try this : http://forums.dropbox.com/topic.php?id=15885




回答3:


You can use the (alpha) tool autodrop, wich is just that: a simple gallery frontend that uses images in Dropbox.

As said: alpha. I am still developing it, rewriting it and making it a little prettier and nicer. Written in Ruby, using dropbox, sinatra and HAML gems. So you will need a host that supports Ruby apps.



来源:https://stackoverflow.com/questions/1522951/update-a-gallery-webpage-via-dropbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!