Hello everyone! I wanna share a situation to which I can't figure a proper solution to see if I get any ideas. Sorry if this specific topic has already been covered, but I couldn't find it anywhere.
I'm trying to upload multiple files only to make some processing and return the results. At first, I don't need them saved to the upload folder, but it might come in handy later, so I'd like to have this option. I mention this because my routine worked fine before, when I used the structure "form=FORM(TABLE" and so on. Later I changed it to "form = SQLFORM.factory(" to have the advantage of Bootstrap formatting and then ran into a double problem: - when uploading multiple files, I can process them and everything goes fine, but the files aren't saved to the upload folder; - when uploading a single file, it is saved to the upload folder, but I can't read it the same way I read with multiple files OR the same way it worked before, without using SQLFORM.factory. I understand I could read the file from the folder, but it really doesn't make much sense to have different approaches to the same operation. So, if there's any question so far, it would be those two: 1. How can I upload but not save a file using the SQLFORM upload field? 2. How can I upload multiple files and get them saved using the SQLFORM upload field? To finish, I managed to insert the "multiple" attribute on the form created by the SQLFORM factory with this line: form.custom.widget['files_field']['_multiple'] = "" Thanks in advance! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.