uploadForm3_iframe.php - Sort Order

By Perchpole - December 2, 2014

Hello, All -

The uploadForm3_iframe.php file contains the following line:

$uploads = getUploadRecords($table, $field, $recordNum, $preSaveTempId);


This is what loads the records to show which files have been uploaded.

Can I control the sort order?

:0/

Perch

By Dave - December 2, 2014

Hi Perch, 

I think it's returned in the same sort order as the uploads are in in the interface.  You could probably sort $uploads after that line, though.

What do you want to sort it on? 

Dave Edis - Senior Developer
interactivetools.com

By Dave - December 2, 2014

Hi Perch, 

I think it's returned in the same sort order as the uploads are in in the interface.  You could probably sort $uploads after that line, though.

What do you want to sort it on? 

Dave Edis - Senior Developer
interactivetools.com

By claire - December 2, 2014

Hey Perch

You can't control it directly, but you can control it by the drag sort order in the upload field. Does that work?

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Dave - December 3, 2014

Hi Perch, 

What about this?

$uploads = getUploadRecords($table, $field, $recordNum, $preSaveTempId);
$uploads = array_reverse($uploads);

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com