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.
LVL 1
AleksAsked:
Who is Participating?
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
http://www.codeguru.com/csharp/.net/net_asp/article.php/c19297/Pure-ASP-File-Upload.htm



From the above you
0
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 ?
0
Julian HansenCommented:
Did you have a look at the article I posted - I would start there.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Julian HansenCommented:
I just created this html file
<!doctype html>
<html>
<body>
<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">	  
</body>
</html>

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.
0
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 ?
0
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.
0
AleksAuthor Commented:
Ok .. I am going to try the code you sent first.
0
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.
0
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.
0

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.
0
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
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.