From: Ben B. <ben...@gm...> - 2006-12-26 16:27:47
|
...sorry. Please ignore my previous email. It was a syntax error on my part :-( Cheers, Ben On 26/12/06, Ben Barker <ben...@gm...> wrote: > Hi, > > Apologies if this is a very basic question! I have just started using > spyce, and so far it has been great. One issue I have had however is > that if I try to upload a file from inside a function I have declared > for example: > > [[\ > def upload(): > upload=request.file(....) > ]] > > Then the file upload fails (upload is blank). If however I put this > line in the main code, not in a function, it works fine. I thought it > might be that I needed to pass in the request object to the function > for it to work, however I can use lines such as request.post(...) with > no issues at all from both locations. > > Any suggestions? I hope the above makes some sense! > > Cheers, > > Ben > |