aspupload – File(s) not uploaded

This post is more for my reference as I still work on a number of classic ASP projects which use aspupload in my day job. When attempting to upload images via an upload form in the CMS a client was getting the error:

File(s) not uploaded.

After 2hrs of trial and error and attempting various fixes including IIS security settings and folder permissions, I was finally able to narrow it down to the form tag. I had omitted:

enctype="multipart/form-data"

This instructs the browser to send the entire file and not just the file input. The whole tag should look like:

<form method="post" enctype="multipart/form-data" action="s_uploader/inc_upload_page_image.asp?page_id=<% response.write(request.QueryString("page")) %>">
Did you like this post? Why not subscribe?

Leave a Reply

Your email address will not be published. Required fields are marked *