• Resolved aafritz

    (@aafritz)


    Is there a way to recover the original file name that a file was uploaded with? They get renamed to what looks like a UUID or something. I really need the original name, preferably in a way I can insert into an email. Better yet, just leave the file named as it was originally…

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

    (@edgarrojas)

    Hello!

    Sorry for the delay, that can be possible with an small tweak but have in mind that if another user submit a file with the same name it potentially could overwrite the previous file. If that is ok with you let me know and i can give you the tweak that you need.

    Regards!

    Thread Starter aafritz

    (@aafritz)

    Are the files still sorted into folders by date in the uploads areas? I.e. the potential for a collision/overwrite is only within a 24 hour period?

    Is it possible to modify the tweak to prepend the original file name with the UUID(?) based file name you currently create so it is unique, but the original file name reminds there too? It seems like that would be a pretty universal solution. Best of both worlds.

    Either way: it would be nice if the original file name became a field that could be used in the emails and also showed up as a column in the entries table however the file gets named. That would allow me (and others) to script downloads of files and rename them to their original.

    Alternatively, maybe a future version can have a “rename” check box in the form editor so we can toggle the behavior as needed. Sometimes I need this and other times I don’t care.

    My use case is people submitting images for critique and I’d love to know the original name at all because people often include information there…

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Yes i think adding the file name at the end is possible, could you create a support ticket at smartforms.uservoice.com so i can send you the modified file that can do this please?

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Ups forgot to comment about the other suggestion, using the file name directly in the email would be kind of hard for now but after doing some improvements that i want to add to the email editor i think this would be possible, something like [field1]->OriginalName would be possible.

    Regards!

    Thread Starter aafritz

    (@aafritz)

    Done. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘File Upload – Original File Name’ is closed to new replies.