Steve5443356
Posts: 0
Joined: Wed Jan 16, 2013 9:41 pm

Get a list of uploaded files

I am able to upload/download files from/to tigzi.

How can I get the list of the current files ? Like an array, or a Json array or file name pr empty if there are no files uploaded.
Need this to automatically download and delete files from tigzi.

Thank you

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Get a list of uploaded files

I don't believe the File API supports this yet. You can try this, without the file name at the end: http://docs.tiggzi.com/documentation/....

As an alternative, you could save all the file names into another collection and get a list this way.

Steve5443356
Posts: 0
Joined: Wed Jan 16, 2013 9:41 pm

Get a list of uploaded files

Hi Max,

Tried without file name and got a server error . bad request ....500

Creating a collection with the file name, yes ..... is a good option but how can I save the image with a programmatic name without the extra characters added ??

e.g. 232d62a7-ab72-4851-b885-e228afa8a091.Water lilies.jpg

Int his way I know what was saved and wht is available to download.

Very impressed by the framework and the quick response.

Have a nice weekend :-)

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Get a list of uploaded files

You could an extra column where you could keep another name for the file.

Return to “Issues”