Page 1 of 1

specified file name - upload files

Posted: Sat Feb 02, 2013 8:06 pm
by Steve5443356

When I upload a file using the Rest API, ,tiggzi adds a guid as a prefix of the file name?
e.g. photo.jpg - aaa-ggff-ddd....photo.jpg

How can I remove the extra characters from the uploaded file name ?


specified file name - upload files

Posted: Sat Feb 02, 2013 9:43 pm
by maxkatz

I believe that's done by MongoDB.. so don't think there is an option to remove it. You can create a new column and save a more user friendly name there.


specified file name - upload files

Posted: Sat Feb 02, 2013 10:18 pm
by Steve5443356

Hi Max,

I created a Collection files_saved. with file_name field

How can I get the filename uploaded to save on my new collection?

The reason is to automatically download the images from the database/
Thank you and have a nice weekend :-)


specified file name - upload files

Posted: Sat Feb 02, 2013 10:22 pm
by maxkatz

You would need to do a POST into that collection, with the name of the file.