• Hi again Nickolas

    I wondered if it would be possible to implement a kind of UID or UUID for the uploaded files. Could be something as simple as appending the files number relative to the number of files in the upload directory.

    All the best

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, there are numerous ways to do it. One of the them is the one you mention, but requires some customization.

    Do all files have the same filename?

    Nickolas

    Thread Starter masdaa

    (@masdaa)

    Hi

    No they get the name of the file and, currently, they are then renamed by a filerenamer plugin to append the current date.

    But what I was thinking was:
    User uploads file named “something”.
    There are 16 files already in the upload folder.
    File is renamed to “17-something“

    Plugin Author nickboss

    (@nickboss)

    Hi, sorry for the delay, I somehow missed your message.

    Please note that the plugin shortcode has a Duplicates Policy option. If you set it to ‘maintain both’ then the uploaded file will be renamed if there is already another file with the same filename in the upload folder. You can try it.

    Regards

    Nickolas

    Thread Starter masdaa

    (@masdaa)

    Hi Nicolas

    No problem ?? Well the files do not have the same name. They are user defined and based on the files name.

    What wound be nice is if it could be implimented in the prestart check. So that it just gives it a new name right before upload.

    Another thing – would it be possible to parse the file through another js function before upload?
    I use the seen.js lib on the site that have a obj parser to generate faces etc. What would be really nice is to run the uploads through the parser and save both the seen file and the original file. But this might be a something for another thread ??

    All the best

    Plugin Author nickboss

    (@nickboss)

    It can also be done in prestart check. The plugin has a wfu_before_upload filter which runs before the upload. However it was not designed to change the filenames. So it requires some customization.

    Parsing can also be done. The plugin can be customized to run the parser after a file is selected, generate the faces and add them to the uploaded files list. However again this requires a lot of customization.

    Regards

    Nickolas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘UID/UUID’ is closed to new replies.