![]() |
|
Default upload folder. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Default upload folder. (/thread-11051.html) |
Default upload folder. - jphilbert - 13-05-2013 I been busy with the lightroom plugin. I redid the ENTIRE API and converted the PHP RPC and the lua Lightroom code to JSON format. It killed a million bugs that was happening between XMLRPC and caused issues with MAC machines. I dont even want to talk about how much better JSON is to work with .. My only thing is the uploading part since now I am making changes... the original programmer made it save uploaded images to the plugin folder first then move it to the appropriate album. where is the best place to upload images to on a temporary base.? Default upload folder. - acrylian - 13-05-2013 I have no idea how this plugin works. I had the impression that it just uploads albums and/or images to albums? What are these temporary images for? Anyway, you need a place where they are not accidentally discovered as albums/images. So the choices of already existing Zenphoto folders are probably:
Default upload folder. - sbillard - 13-05-2013 the normal upload process (provided by PHP) is that the files are uploaded to the account's temporary folder then moved to the appropriate album. The other alternative is to upload them to a folder in the zp-data directory. But you are right to not want to upload to the plugins folder. That could even be read-only since it is supposed to be only loadable files. Default upload folder. - jphilbert - 13-05-2013 zp-lightroom is where the images are temporally copied then moved to the proper location. Thanks @sbillard I will change the code so all images are uploaded to folder in zpdata before they need to moved ... thanks. @acrylian I just want to know what is good practices, since I am retooling the API of the plugin. I dont think using the plugin folder is not appropriate spot for uploading files even on a temp basis is a good idea. Default upload folder. - acrylian - 13-05-2013 Sure, I just wanted to know what the plugin does since I don't have Lightroom to even test it. |