J
John Boghossian
Does anyone know what really happens when you call the method contenttype on
the object httpPostedFile that returns the mime-type for the uploaded file.
Is it so that the post request includes the mimetype as a string that has
benn evaluated in the client and is attached to the post to the server
Or is it the webserver that extracts the file extension from the posted
file and looks it up in it´s own registry?
The reason for this is that i want to remodel an old function that used a
file post and instead use a web service request that takes the arguments
filename, bytearray and so on. But i am wondering about the best way to
evaluate the files mimetype. Clientside or serverside.
Regards
John Boghossian
the object httpPostedFile that returns the mime-type for the uploaded file.
Is it so that the post request includes the mimetype as a string that has
benn evaluated in the client and is attached to the post to the server
Or is it the webserver that extracts the file extension from the posted
file and looks it up in it´s own registry?
The reason for this is that i want to remodel an old function that used a
file post and instead use a web service request that takes the arguments
filename, bytearray and so on. But i am wondering about the best way to
evaluate the files mimetype. Clientside or serverside.
Regards
John Boghossian