[web2py] Re: Moving a file (upload) from one table to another

2014-09-01 Thread Spokes
Thanks, Niphlod. I've gotten closer to a solution with your suggestion. However, there's still something of an issue. I start off by storing the path to the image field which I would like to copy, and creating a stream for the corresponding image image_filename_as_list = image_row.image

[web2py] Re: Moving a file (upload) from one table to another

2014-08-31 Thread Spokes
Thanks, Niphlod - that looks like it should solve the issue. Just have a follow-up question - what's the best way to pass the location of the file to the 'open()' function? I've tried a few things, including the following: image_filename_as_list = current_image.image.split('.') c

[web2py] Re: Moving a file (upload) from one table to another

2014-08-31 Thread Niphlod
when you deal with upload fields, you should use the proper method (i.e. store()) http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#More-on-uploads On Sunday, August 31, 2014 2:52:45 PM UTC+2, Spokes wrote: > > I have two tables, *t_image2* and *t_image1*, and I would