Thank you! 2012/8/14 Anthony <[email protected]>
> I think, I have not understood the upload function. I have read about it >> in the book and tried to write my function like these examples - but >> without success. >> > > The misunderstanding is not with upload/download, but with Mail.Attachment > -- you have given it the URL for the file (which is how you would access > the file via an HTTP request from the internet) rather than the file path > (which is how you access the file internally on the file system). What you > call a workaround is actually the appropriate way to do it > > >> file=request.folder+'\\**uploads\\'+r.attach >> >> > Note, when generating file paths, this is better: > > import os > file = os.path.join(request.folder, 'uploads', r.attach) > > That will ensure the appropriate path separator is used for the current OS. > > Anthony > > --

