ImageField reads stream but does not provide data.


In the process of validating the image file the ImageField control will read the filestream into an image but does not provide a way to access the data.


timsavage wrote Jan 21, 2010 at 4:34 AM

Temporary work around is to use a FileUpload control as it does not touch the input stream.

Final solution will involve a file wrapper function. Likely files will be written to disk on upload. Files should not be written to disk unless the form is valid. The clean process should process file upload controls last.

wrote Feb 13, 2013 at 12:09 AM