web2py 2.3.2 on windows With this, i can save files form = SQLFORM.factory(Field("Stocktake_date","date"), Field("Description_of_stocktake","string",length= 60), Field('spreadsheet_upload','upload', uploadfolder=os.path.join(request.folder, 'static/uploads/')))
and with this I can get the original file name: old_file = request.vars.spreadsheet_upload.filename Documentation says that the new file name is saved in the field but I seem to be getting the uploaded file itself. Something different about using SQLFORM.factory I suppose. ie saved_file = form.vars.spreadsheet_upload is not the file name, but the contents of the uploaded file. I've spend a while searching for an answer but I have failed. -- --- 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/groups/opt_out.