File upload from file-based module Assay | Anthony Corbett | 2013-03-21 10:52 |
Status: Closed | ||
I have got this working. I ended up comparing two different upload.html implementations using FileUploadField.js in two different file based assays. The differences I saw, (1) the id of the form and div were different and (2) they were calling LABKEY.requiresScript('FileUploadField.js') AFTER their HTML markup, were I was doing it at the top of my page. Either one of those 2 things fixed my issue. I'm thinking changing the id of the elements had no impact (as long I was referencing them correctly in my BasicForm and FileUploadField code). Would it be possible to change the action's response to not be successful if no files were actually created on the server? In my case it was posting a multipart/form-data but there were no files sent and the filesNames iterator had nothing to do. Regards, Anthony |
||