To be clear, I *cannot *reproduce this problem. weheh, when you delete a record, does it properly delete the file associated with the 'name' field but fail to delete the file associated with the 'image' field, or are both files being left behind? I notice the 'name' field uploads to 'static', but the 'image' field uses the default upload folder (i.e., 'uploads') -- is it possible there is a permissions issue with the 'uploads' folder?
Anthony On Wednesday, February 29, 2012 9:49:46 AM UTC-5, Massimo Di Pierro wrote: > > Please open a ticket, this may be a bug. > > On Feb 29, 8:37 am, Anthony <[email protected]> wrote: > > > Grrr. Sorry to go around in circles on this. I traced my code some > > > more and, yes, there was a bug. But I fixed it and yet the upload file > > > is not being deleted. As improbable as it seems that this would be a > > > bug in web2py, my Question #1 above remains open. > > > > Using the latest trunk, I tried your exact table definition (minus the > > reference field), and deleting a record did result in the two uploaded > > files being deleted as well (on Windows 7). > > > > Anthony On Wednesday, February 29, 2012 9:49:46 AM UTC-5, Massimo Di Pierro wrote: > > Please open a ticket, this may be a bug. > > On Feb 29, 8:37 am, Anthony <[email protected]> wrote: > > > Grrr. Sorry to go around in circles on this. I traced my code some > > > more and, yes, there was a bug. But I fixed it and yet the upload file > > > is not being deleted. As improbable as it seems that this would be a > > > bug in web2py, my Question #1 above remains open. > > > > Using the latest trunk, I tried your exact table definition (minus the > > reference field), and deleting a record did result in the two uploaded > > files being deleted as well (on Windows 7). > > > > Anthony

