Set the uploadfield to the name of the other field:
Field('species_file', 'upload', label="Upload Names",
uploadfield='species')
uploadfield = True # means store file on disk
uploadfield = 'field_name' # store content in that DB field
uploadfield = False # file content is discarded
On May 2, 3:50 am, selecta <[email protected]> wrote:
> *bump*
>
> On Apr 29, 1:30 pm, selecta <[email protected]> wrote:
>
>
>
>
>
>
>
> > > Also I wonder if there is a method to upload the file without ever
> > > storing it? If I remove the uploadfolder argument it does not work. I
> > > really dont want to store the file at all.
>
> > ok i should have serached a bit more
> > uploadfield=False
> > does the trick
>
> > a bit more information on the other problem
> > species_form.element(_id="no_table_species")
> > species_form_elem["_value"] = 'foobar'
> > works, but it produces
> > <textarea value="foobar"></textarea>
> > but i want rather
> > species_form_elem["value"] = 'foobar'
> > <textarea>foobar</textarea>
> > since only this is displayed in the textarea