...sorry. Please ignore my previous email. It was a syntax error on my part :-(
On 26/12/06, Ben Barker <benjamin.barker@...> wrote:
> 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():
> 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!