A
Andy Johns
I've seen plenty of examples of file uploads in ASP.NET when the only
form element is the file input type, but I've not seen a practical
example of a file upload routine running alongside other form
elements, e.g. a text box for a description for example. If the form
is being posted in multipart format then the text coming through will
need to be converted first, won't it?
The other issue is that if the form is posted, and the validation
checks are performed server-side (as they should be, even if you ARE
using client-side checking) won't the form take ages to process due to
the file being transferred in the form data?
I wondered if the webmail style of attachment would be best...where
you popup a window with a form, you attach the file, you upload it,
and then all that appears in the original form is a filename. But
this would mean that the file is already on the server, before you
actually submit the rest of the form contents, so if they then decide
to cancel the form, there'll be an orphaned file.
Is there another way to solve this problem?
form element is the file input type, but I've not seen a practical
example of a file upload routine running alongside other form
elements, e.g. a text box for a description for example. If the form
is being posted in multipart format then the text coming through will
need to be converted first, won't it?
The other issue is that if the form is posted, and the validation
checks are performed server-side (as they should be, even if you ARE
using client-side checking) won't the form take ages to process due to
the file being transferred in the form data?
I wondered if the webmail style of attachment would be best...where
you popup a window with a form, you attach the file, you upload it,
and then all that appears in the original form is a filename. But
this would mean that the file is already on the server, before you
actually submit the rest of the form contents, so if they then decide
to cancel the form, there'll be an orphaned file.
Is there another way to solve this problem?