Drop Zone upload (rename) with ASP Classic

I am using ASP/Classic and looking forward to replacing my current upload with DropZone  (http://www.dropzonejs.com/)
DropZone allows uploading multiple files at once instead of one at the time.

I was able to setup the dropzone on my page but I have no clue what to do from that point forward, to actually make it upload those files into a folder of my choosing (I have the path in a session variable), but also rename the files.  Then I will insert the renamed file into my DB.

So I need some guidance to do this.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
With any upload solution there are two components.

The script / html on the client side that "collects" what files must be uploaded
The receiving script on the server that accepts the files being uploaded and processes them.

However, ASP classic does not make it easy to process files - so you probably want to look at a 3rd party library / class that does the work for you.

If you google ASP file upload you should find a few - here is a link that discusses the process which may be of assistance

From the above you
AleksAuthor Commented:
I understand. Dropzone is the side that collects the files. I got that covered.
I do need help implementing the rest. I usually take an example and adapt it but in this case drop zone doesn't have one.
I am open to use ANY asp uploaded component that can work with dropzone. Buy it if needed. The easier the implementation the better.
Where would I start ?
Julian HansenCommented:
Did you have a look at the article I posted - I would start there.
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Julian HansenCommented:
I just created this html file
<!doctype html>
<form action="http://myserver/aspupload/uploadexmple.asp" class="dropzone"></form>

<script src="https://rawgit.com/enyo/dropzone/master/dist/dropzone.js"></script>
<link rel="stylesheet" href="https://rawgit.com/enyo/dropzone/master/dist/dropzone.css">	  

Open in new window

And pointed it to uploadexample.asp page that is in the file download in the article I posted.
Worked pretty much out of the box - all I had to do was change the path in the asp file where I wanted the files saved.
AleksAuthor Commented:
I'll be able to test it in about an hr if it works I'll just need help renaming the tiles and then somehow saving the names in the database. Not sure how I'll do that.  I guess run a sp after each file uploads ?
Julian HansenCommented:
That all gets done in the uploadexmple.asp that comes with the demo - you can see there where the save is done and simply implement your rename code as desired. The script as it stands uses the same name as the file uploaded.
AleksAuthor Commented:
Ok .. I am going to try the code you sent first.
AleksAuthor Commented:
I was looking at other solutions, seems ASPUpload may be more robust. Is there a chance we can go with that and test ?  their drop zone interface is not as nice so I want to replace it with DropZonejs if possible.
Julian HansenCommented:
You can use whatever you like - they should be interchangeable. The client sends files in a standard way - any server side solution just needs to follow the standards and it will work - the source of the files (Dropzone, blueimp, <input type="file"> should not matter.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin GCommented:
Thanks a miliion for this. After hours of trying to figure out a similar issue with fineuploader this was the problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.