Cannot be done because it would break the download method. There are lots of tricks involved in making this work fast and smoothly.
Mossimo On Jun 3, 11:57 am, Robert Marklund <robbelibob...@gmail.com> wrote: > Maybe you should expose the filename making as a method: > > uuid_key = str(uuid.uuid4()).replace('-', '')[-16:] > encoded_filename = base64.b16encode(filename).lower() > newfilename = '%s.%s.%s.%s' % \ > (self.table._tablename, fieldname, uuid_key, > encoded_filename) > # for backward compatibility since upload field if > 128bytes > newfilename = newfilename[:122]+'.'+e > self.vars['%s_newfilename' % fieldname] = newfilename > fields[fieldname] = newfilename > > So that people with there own fileuploads can make use of the appadmin . > > /Robert > > -- > ______________________________________________ > Robert Marklund > > Phone: +46 (0)46 19 36 82 > Mobile: +46 (0)70 213 22 76 > E-mail: robbelibob...@gmail.com > ______________________________________________ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---