Sharing Ideas And Solutions <a href="index.cfm?fuseaction=idea.newsletter_subscribe">Our Newsletter</a> Downloadable Solutions PHP Classes For Small &amp; Medium Enterprise Free For Non-Profit Organization Customer Feedback Contact Us Featured Web Template View More Templates MasRizal In Numbers * 25 years in business. * 6856 corporations in 67 countries have chosen our products and service. * 73.20% are using more than one solutions from us. - MasRizal &amp; Partners -Enhancing Business With Trust PHP_FlashUpload (Evaluation Version) Custom Class: PHP_FlashUpload Version: 1.0 (c) 2006, MasRizal &amp; Partners Rizal Firmansyah, rizal.firmansyah@masrizal.com Indra Gunawan, indra.gunawan@masrizal.com PHP_FlashUpload is a quick solution to replace ordinary &lt;input type=&quot;File&quot;&gt; This custom class also adds below functionalities: 1. Filter file that can be uploaded. The filtering is done by file extension. 2. Limit maximum size of file that can be uploaded 3. Progress bar showing the progress of uploading process. Can &lt;input type=&quot;File&quot;&gt; do above functions? No. Are those functions requested by you and your clients? Yes, they are! Note: The original source code for FlashUpload.swf is not distributed and it's not intended for sale. Contact us if you want to customize this custom tag further. Evaluation version limitation: You're allowed to install this custom tag in your testing environment. Upon uploading files, the custom tag will trigger a window notifying that you're using evaluation version. Features Requirements Usage Application Example <h1> Easy to use! Simple operation for user.</h1>[h1] Just like ordinary file upload field Multi-platform.[/h1][h1] Works on all Macromedia Flash Player 8 supported platform.[/h1][h1] No Java applet to install, no &quot;unknown&quot; ActiveX to install.[/h1][h1] Instead this tag uses a world-leading Flash Player 8 from Macromedia Small footprint.[/h1][h1] Only 36KB.[/h1][h1] Ability to filter allowed files to upload by extensions.[/h1][h1] Ability to limit maximum uploaded file size.[/h1][h1] .[/h1][h1] Progress bar.[/h1][h1] Show the progress of upload process in real-time, not just a simple animation.[/h1][h1] Event callback.[/h1][h1] Track the status of upload from JavaScript.[/h1][h1] Ability to trigger the upload process from JavaScript too.[/h1][h1] Plain PHP custom class.[/h1][h1] Shared hosting friendly.[/h1][h1] Just copy this custom class in your PHP script directory, and you're set [/h1]Supported Server: PHP 4 and up Supported browsers: All browsers having Macromedia Flash Player 8. The custom tag will trigger the browser to download the player if it's not installed yet. Click here for more information to download Macromedia Flash Player Limitation: Due to limitation in Flash, HTML, Webserver and PHP, below restrictions apply: 1. FlashUpload CAN NOT be included in the &lt;form&gt;. Instead put this tag outside the form, and do the upload using JavaScript (if ShowUploadButton is set to false) Check this file: example_2.php on how to achieve this. 2. The uploaded formfield always use the name: &quot;Filedata&quot;. So the &quot;Action&quot; URL must handle this '$HTTP_POST_FILES[&quot;Filedata&quot;]' variable. 3. MaximumFileSize is also limited by Flash, PHP and webserver configuration. Please consult PHP and your webserver documentation to allow large file upload (Eg: 64MB or more) Class name FlashUpload Properties Name=&quot; The name of this object, required&quot; Action=&quot;URL of script that will handle the uploaded file, required&quot; Style=&quot;limited CSS-style to customize FlashUpload user interface. Optional&quot; RedirectTo=&quot;URL that will be redirected to upon upload completeion. Optional&quot; ShowUploadButton=&quot;true/false. Show the upload button in FlashUpload object. Optional, default=true&quot; MaxFileSize=&quot;Maximum file size allowed for upload in bytes. Optional, default=0=unlimited&quot; FileFilter=&quot;List of title and file extensions allowed for upload. Optional, default=all files&quot; OnProgress=&quot;Name of JavaScript function that will handle events send from FlashUpload. Optional&quot; Methods write Write FlashUpload object to response buffer Limitation: Due to limitation in Flash, HTML, Webserver and PHP, below restrictions apply: 1. FlashUpload CAN NOT be included in the &lt;form&gt;. Instead put this tag outside the form, and do the upload using JavaScript (if ShowUploadButton is set to false) Check this file: example_2.cfm on how to achieve this. 2. The uploaded formfield always use the name: &quot;Filedata&quot;. So the &quot;Action&quot; URL must handle this '$HTTP_POST_FILES[&quot;Filedata&quot;]' variable. 3. MaximumFileSize is also limited by Flash, PHP and webserver configuration. Please consult PHP and your webserver documentation to allow large file upload (Eg: 64MB or more) We encourage downloading the evaluation version first, install and test it in your environment. Click here to download the free evaluation version --> Explanation: Explanation: 1. Style php_FlashUpload allow limited CSS-style to be applied to this tag. Those are: color and border-color. Other style will be ignored. For example: $flashupload-&gt;Style=&quot;color:#000000; border-color:#cc0000&quot;; 2. MaximumFileSize The maximum uploaded file size in bytes. See limitation #3 above 3. FileFilter Is a comma delinmited list of title and file extensions allowed to be uploaded. Each extensions is separated by ; For example: To allow MS Word file -&gt; FileFilter=&quot;Microsoft Word Files,*.doc;*.rtf&quot; To allow Images -&gt; FileFilter=&quot;Images,*.jpg;*.gif;*.png;*.bmp&quot; To allow MS Word, MS Excel, and PDF upload -&gt; FileFilter=&quot;Word,*.doc;*.rtf,Excel,*.xls;*.csv,PDF,*.pdf&quot; (Note the &quot;,&quot; and &quot;;&quot;) 4. OnProgress php_FlashUpload allow JavaScript functions to handle event send by the object. For example: $flashupload-&gt;OnProgress=&quot;WhatIsIt&quot;; In the HTML, you will have to add a JavaScript function named &quot;WhatIsIt&quot; with one parameter &lt;script language=&quot;JavaScript&quot;&gt; function WhatIsIt(iFlashUploadStatus) { if (iFlashUploadStatus==1) alert(&quot;Upload completed&quot;); else if (iFlashUploadStatus==-1) alert(&quot;Upload canceled&quot;); else if (iFlashUploadStatus==-2) alert(&quot;Upload Fail: IO error&quot;); else if (iFlashUploadStatus==-2) alert(&quot;Upload Fail: Security error&quot;); else if (iFlashUploadStatus==-4) alert(&quot;Upload Fail: HTTP Eeror&quot;); if (iFlashUploadStatus==2) document.body.style.cursor=&quot;wait&quot;; // uploading else document.body.style.cursor=&quot;&quot;; } &lt;/script&gt; 5. Triggering upload process from JavaScript To start uploading triggered by JavaScript, call this function: objFlash.FlashUpload_DoUpload() With objFlash is the FlashUpload object in your HTML. To get this objFlash, you can use this code snippet: if(navigator.appName.indexOf(&quot;Microsoft&quot;) != -1) objFlash = window.&lt;?=$HTTP_POST_VARS[&quot;FlashUploadName&quot;]?&gt;; else objFlash = window.document.&lt;?=$HTTP_POST_VARS[&quot;FlashUploadName&quot;]?&gt;; 6. FlashUpload functions that can be called from JavaScript are: FlashUpload_DoUpload -&gt; to start file upload, as explained above FlashUpload_GetFileName -&gt; to get the uploaded filename FlashUpload_GetStatus -&gt; to get the last status of FlashUpload 1 = upload completed 0 = upload hasn't been enabled. File not selected -1 = upload canceled -2 = upload fail because of IO error -3 = upload fail because of security error -4 = upload fail because of HTTP errorThis class comes in handy when your website requires file upload from user. Some web applications that may benefit by using this tag are: e-Commerce websites Photography websites Blogs Backend application and all other applications which need file upload capability For a complete example please click this link (Open in new window) (Tabbed page powered by CF_Tab) Licensing Information PHP_FlashUpload (Evaluation Version) is available for immediate download. After registration, you will receive a confirmation email with your download link. Please ensure your email address is entered correctly during the evaluation process. Customers Who Downloaded PHP_FlashUpload (Evaluation Version) Usually Purchased These Products Too 1. CF_FlashMultiUpload 2. Random Query 3. Resize Image 4. ASP_FlashMultiUpload Why Customers Choose Us Find out why our valued customers choose MasRizal &amp; Partners solutions. Click here to see their reasons Featured Customers More than 6850 companies rely on MasRizal &amp; Partners solutions. Click here to see our featured customers Free For Non-Profit Organization MasRizal Charity program allows eligible nonprofit organizations to get MasRizal's products at no cost. Click here for program detail Testimonials Take the word of our clients Top Selling Products See our top selling products Let Us Help You Can't find solution you need? Click here to get solution from MasRizal.
applet,limit,flash,javascript,java,progress,file,php,uploadSharing Ideas And Solutions

Our Newsletter
Downloadable Solutions
Free For Non-Profit Organization
Customer Feedback
Contact Us
Image Compressor 2008.
Batch recompress, resize, rotate and watermark your image.
Save up to 10x more in any storage.
Speed up upload, download, and e-mail transmission time.
Featured Web Template
MasRizal In Numbers

* 25 years in business.
* 6856 corporations in 67 countries have chosen our products and service.
* 73.20% are using more than one solutions from us.

- MasRizal & Partners -
Enhancing Business With Trust
PHP_FlashUpload (Evaluation Version) Cheapest Only At MasRizal.Com

Custom Class: PHP_FlashUpload
Version: 1.0
(c) 2006, MasRizal & Partners
Rizal Firmansyah, rizal.firmansyah@masrizal.com
Indra Gunawan, indra.gunawan@masrizal.com

PHP_FlashUpload is a quick solution to replace ordinary <input type="File">
This custom class also adds below functionalities:
1. Filter file that can be uploaded. The filtering is done by file extension.
2. Limit maximum size of file that can be uploaded
3. Progress bar showing the progress of uploading process.

Can <input type="File"> do above functions? No.
Are those functions requested by you and your clients? Yes, they are!

Note:
The original source code for FlashUpload.swf is not distributed and it's not intended for sale.
Contact us if you want to customize this custom tag further.

Evaluation version limitation:
You're allowed to install this custom tag in your testing environment.
Upon uploading files, the custom tag will trigger a window notifying that you're using evaluation version.

(Tabbed page powered by CF_Tab)   


Licensing Information

PHP_FlashUpload (Evaluation Version) is available for immediate download.
After registration, you will receive a confirmation email with your download link.
Please ensure your email address is entered correctly during the evaluation process.



Customers Who Downloaded PHP_FlashUpload (Evaluation Version) Usually Purchased These Products Too
1. CF_FlashMultiUpload 2. Random Query 3. Resize Image
4. ASP_FlashMultiUpload

Why Customers Choose Us
Find out why our valued customers choose MasRizal & Partners solutions.
Click here to see their reasons

Featured Customers
More than 6850 companies rely on MasRizal & Partners solutions.
Click here to see our featured customers

Free For Non-Profit Organization
MasRizal Charity program allows eligible nonprofit organizations to get MasRizal's products at no cost.
Click here for program detail
Testimonials
Take the word of our clients

Top Selling Products
See our top selling products

Let Us Help You
Can't find solution you need?
Click here to get solution from MasRizal.
© Copyright 1999-2024 MasRizal & Partners
All Rights Reserved.
OISV - Organization of Independent Software Vendors - Contributing Member    Solutions for designers provided by TemplateMonster.com    Payment processing by 2Checkout    2Checkout.com supports Master Card Secure Code    2Checkout.com is verified by Visa
HALF PRICE SLASH TODAY!
Get 50% Discount
on Premium Component Collection

+ FREE Lifetime Upgrade.
Best Investment.


Offer valid until December 31, 2024

Use Coupon: HALFPRICE3
(Copy this coupon and use it during checkout)

Buy Premium Component Collection With 50% Discount

[ X Close This Window ]