views:

1108

answers:

4

Hi

I was trying to upload a photo on facebook using a browser with no flash, and could see that it didn't work.

I am pretty confident in handling files and related issues using Php and have done some sites allowing users to upload and manage files (images, docs etc). But I never thought about the above flash approach. I googled a bit and saw that there are few scripts available on which I can look how it works using flash.

But my questions are, when I should decide to use flash for user uploads. What are the advantages of using this approach? or disadvantages?

Thanks

+1  A: 

Well, with flash, the obvious letdown is that it will only work when a user has flash (although, you could display something in its place if they didn't). If your a flash programmer and comfortable with flash, I can see how it would be better. You could generate a file list, multiple uploads ect. I would say it's just an alternative to JavaScript for providing interactivity and allowing users to upload content dynamically.

Sam152
but why to do it in flash if we can do it in javascript? I mean most people have javascript supported browsers, while I still miss some websites that want flash (x) version and I only have x version
Bassel Safadi
I guess it boils down to personal preference of the programmer.
Sam152
+1  A: 

Depends on your audience: If you are pretty sure that your users have flash installed, there is nothing against it. It even gives some neat advantages, like:

  • Upload of multiple files at once
  • Progress bar while uploading
  • Instant preview of uploaded media
  • etc.
soulmerge
+1  A: 

when I should decide to use flash for user uploads.

use it when the whole website is flash, but that is not professional and you can't count a lot on flash security, while you can write/use a lot of classes for hardening and checking files uploaded by php scripts..

on the other hand, some people like flash upload for progress bars, but you can do such stuff with php and jquery. for example check uplodify

Correction

I don't have flash support on my current browser so when watching uploadify demos I only see the fallback, thanks to soulmerge for making this clear

Bassel Safadi
I think uploadify uses a flash script for the uploads.
soulmerge
yes but there is a fallback if the user don't have flash..
Bassel Safadi
+1 Nice, didn't know that
soulmerge
A: 
David Dorward