Uploads without Records?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 27, 2014   (RSS)

By Dave - November 27, 2014

Hi Perch, 

Interesting idea.  There is a method used to store images without  nums, it's a field called "preSaveTempId" and it's set when images are uploaded during record creation (when no record exists yet) and then they're assigned to the record when it's saved (or erased after 24 hours or some duration of time).

So you could just upload files, but the code that "cleans up" unassigned uploads might erase them after a while.

What about having a "Single Record Editor" with one upload field and lots of uploads in it?   Or what about a Multi-record editor for "Photo Gallery" and a record for each "category" with one field for uploads? 

If you want to get all the uploads for a section you can query the upload table directly, it's hidden but you can see the fields here: 
admin.php?menu=database&action=editTable&tableName=uploads

The issue with querying it directly is you'll be getting the mysql data and not all the full image paths, but that method might work for you.

Let me know what you think.  

Dave Edis - Senior Developer
interactivetools.com