resume upload wsgi script

Diez B. Roggisch deets at nospam.web.de
Sun Aug 9 09:17:39 EDT 2009


gert schrieb:
> I working on a resume upload script and encountered the following
> problems
> 
> sql: Could not decode to UTF-8 column 'SUBSTR(picture,?)' with text
> '\ufffd\ufff
> d\ufffd\ufffd↑!Exif------------Ef1gL6KM7Ij5ae0gL6KM7cH2cH2GI3
> Content-Disposition: form-data; name="Filename"

You are treating a binary data column as if it were a string. That's 
bogus, you need to use a blob column.

Also I wouldn't combine the uplodaded chunks until the full upload is 
finished - and even then only if I actually need the data.

Diez



More information about the Python-list mailing list