Hi-
I am having issues with uploading files using page actions, which could very well be user error.
I have an upload file action set just prior to the save data action on the page I submit to in a form using standalone pages, and upload file and save data set for the file field.
With one test, I set the global upload files action. In a second test, I did not. The only time the file gets uploaded is when the global action is set, and the data never gets saved to the db.
This is what I get when I debug (please note I have used a generic upload path and filenames in place of the real ones):
In both tests I get the following for the page upload file action I have set, which appears before the save data action:
When I have the global upload file set I get this AFTER my save data action:
I am having issues with uploading files using page actions, which could very well be user error.
I have an upload file action set just prior to the save data action on the page I submit to in a form using standalone pages, and upload file and save data set for the file field.
With one test, I set the global upload files action. In a second test, I did not. The only time the file gets uploaded is when the global action is set, and the data never gets saved to the db.
This is what I get when I debug (please note I have used a generic upload path and filenames in place of the real ones):
In both tests I get the following for the page upload file action I have set, which appears before the save data action:
[upload_477] => Array ( [path] => /my/upload/path/ [scholapp] => Array ( [teacher_rec] => Array ( [extensions] => Array ( [0] => jpg [1] => jpeg [2] => pdf ) [saved] => false ) ) [var] => false )
When I have the global upload file set I get this AFTER my save data action:
[Application_upload] => Array ( [path] => /my/upload/path/ [scholapp] => Array ( [teacher_rec] => Array ( [extensions] => Array ( [0] => jpg [1] => jpeg [2] => pdf ) [saved] => true ) [judge_summaries] => Array ( [extensions] => Array ( [0] => pdf ) [info] => File is not present. ) ) [var] => Array ( [scholapp] => Array ( [teacher_rec] => Array ( [path] => /my/upload/path/upload_file_name.pdf [filename] => upload_file_name.pdf [name] => original_file_name.pdf [size] => 415907 [url] => https://mydomain.org/load&dtask=download&file=upload_file_name.pdf ) ) ) )So the file only gets uploaded with the global action, and the global action gets triggered after the page actions, which means nothing gets stored in the db. Is there a trick I am not aware of in using upload file as a page action?