Default upload folder.

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.
My thing is I want to make this a interface that follows Zenphoto best practices as much as I can and I use almost ALL internal functions to accomplish my goals.
Ok I going off base and rambling too much..

where is the best place to upload images to on a temporary base.?

Comments

  • acrylian Administrator, Developer
    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:
    - the root of the /albums folder (since only folder within are considered albums)
    - cache folder (you could even create your own cache subfolder folder maybye)
    - uploaded folder
  • 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.
  • 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.
  • acrylian Administrator, Developer
    Sure, I just wanted to know what the plugin does since I don't have Lightroom to even test it.
Sign In or Register to comment.