File drag and drop

Hi everybody,

I use the below code to  upload files with a flash progress bar.
How can I manipulate my code to have a drag and drop file  (multi file!) feature using the method described at the link.
What steps you suggest me?
Thank you.

https://github.com/arian/mootools-form-upload

 
<script src="mootools.js"></script>
<script src="Fx.js"></script>
<script src="Swiff.js"></script>
<script src="FancyUpload.js"></script>

<script type="text/javascript">
window.addEvent('load', function() {
	var up = new FancyUpload.Attach('demo-list', '#demo-attach, #demo-attach-2', {
		path: 'images/Swiff.Uploader.swf',
		url: 'server/upload.php',
		fileSizeMax: 50 * 1024 * 1024,verbose: true,

		onFileSuccess: function(file) {
				file.ui.remove.set('style','display:"";visible:true');
		},
			
	});

});
</script>

<body >
<div id="demo"  >
 
<a href="#_"   id="demo-attach"    >Attach a file</a>
<ul id="demo-list"  ></ul>
<a href="#_"   id="demo-attach-2"    >Attach more</a>
</div>
</body>

Open in new window

FancyUpload.js
LVL 1
myyisAsked:
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.

Randy DownsOWNERCommented:
Maybe you can incorporate this.

Drag and Drop is one of those interactions that can really help to make an interface simple to use. There are plenty of JavaScript libraries that can be used to create drag and drop interfaces but what many people don’t know is that all of the major browsers actually have native support for drag and drop.

In this blog post you are going to learn how to make use of the native Drag and Drop API in order to create your own Drag and Drop interfaces.
0
lenamtlCommented:
Suggestion you may like Pupload or Dropzone they does that by default
http://www.plupload.com/examples/
http://www.dropzonejs.com/
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
myyisAuthor Commented:
Thank you all
What  I  want specifically is to change the code attached above and add a drag a drop feature.

Especially if somebody tells me the part that I should change at  the file "FancyUpload.js" I will be happy.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

lenamtlCommented:
It is just that FancyUpload.js is very very old script... I would not recommend using it as you will probably encounter compatibility issue eventually with browsers.

And Pupload or Dropzone are so cool and easy :)
0
myyisAuthor Commented:
Well I am happy using that, so  I prefer not to change now.
0
myyisAuthor Commented:
I will try dropzone, thank you
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
JavaScript

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.