Solved

javascript/flash/php file uploading with SWFupload

Posted on 2009-05-04
2
529 Views
Last Modified: 2012-05-07
I spent hours to find out a uploader to upload large files and display progress bar . finally I found SWFupload. I am using it in my form (index.php) . the only problem is its mandatory to upload a file whereas it should be optional for my users to upload files.

right now if they do not select a file to upload form is not submitting. I know I need to play with handlers.js but what and where . I only want to submit form simply and lets do upload.php its work .. i do not need any validation (javascript) . I have very few knowledge of javascript. I just want to submit the form in simple stright manner that should access code of upload.php and upload-videos-proccess.php .. there is no room for javascript validations . how i remove it ? once i delete whole handlers.js code it does not work too ..

Please rename files
index.php.txt into index.php
upload-videos-proccess.php.txt to upload-videos-proccess.php
upload.php.txt to upload.php
default.css.txt to default.css
swfupload.js.txt to swfupload.js
swfuploadbutton.swf.txt to swfuploadbutton.swf
swfupload.swf.txt to swfupload.swf
js/fileprogress.js.txt to js/fileprogress.js
js/handlers.js.txt to js/handlers.js
SWFUpload.zip
0
Comment
Question by:amitbravo
2 Comments
 
LVL 22

Accepted Solution

by:
rascalpants earned 500 total points
ID: 24415322

why are you using using the same method to send data to a server if you are NOT sending a file?

I would setup two methods, and only call the one, when the user has selected that option...


rp / ZA

0
 

Author Closing Comment

by:amitbravo
ID: 31626895
I am not swfupload anymore. I found multipow far better than this
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question