Sharing Ideas And Solutions Our Newsletter Downloadable Solutions PHP Classes For Small & 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 & Partners -Enhancing Business With Trust PHP_FlashUpload PHP_FlashUpload is a complete solution to replace the old <input type="File"> with additional functionalities:1. Filter file that can be uploaded. People can only upload files which you specify.2. Limit maximum file size. Keep your bandwidth and server resources to the optimum level. Don't let your competitor upload unecessary files to bring down your server.3. Progress bar. Let your user know how goes the upload. Don't let them wondering whether your website respon to their upload request or not. Why PHP_FlashUpload? If you're the business owner, do you want your website uses the latest technology or the 10 years old one? PHP_FlashUpload is a Flash based interactive file upload component. If you're a programmer, do you want to get into next level or stay like old HTML programmers do? Using PHP_FlashUpload you just set yourself to a higher level than any rookies that only knows <input type="file"> to upload a file. Join thousands of other programmers and businesses who have successfully offer a better way to upload file for their users. People will love you and your work. A true bargain! Why use a Java based upload component that's more expensive and harder to use? Less effort to deliver your project on time and on budget. Why spend lots of time and money learning Flash language if you can have all you needs with PHP_FlashUpload? Using PHP_FlashUpload you can devote your time focusing on other things more important for you. Spend more time on your business rather than writing codes (and debugging them) PHP_FlashUpload is the right solution for you! 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. Features Requirements Usage Application Example
Easy to use! Simple operation for user.
[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 "unknown" 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 <form>. 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: "Filedata". So the "Action" URL must handle this '$HTTP_POST_FILES["Filedata"]' 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 Class name FlashUpload Properties Name=" The name of this object, required" Action="URL of script that will handle the uploaded file, required" Style="limited CSS-style to customize FlashUpload user interface. Optional" RedirectTo="URL that will be redirected to upon upload completeion. Optional" ShowUploadButton="true/false. Show the upload button in FlashUpload object. Optional, default=true" MaxFileSize="Maximum file size allowed for upload in bytes. Optional, default=0=unlimited" FileFilter="List of title and file extensions allowed for upload. Optional, default=all files" OnProgress="Name of JavaScript function that will handle events send from FlashUpload. Optional" 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 <form>. 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: "Filedata". So the "Action" URL must handle this '$HTTP_POST_FILES["Filedata"]' 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. Stylephp_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->Style="color:#000000; border-color:#cc0000";2. MaximumFileSizeThe maximum uploaded file size in bytes.See limitation #3 above3. FileFilterIs 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 -> FileFilter="Microsoft Word Files,*.doc;*.rtf"To allow Images -> FileFilter="Images,*.jpg;*.gif;*.png;*.bmp"To allow MS Word, MS Excel, and PDF upload -> FileFilter="Word,*.doc;*.rtf,Excel,*.xls;*.csv,PDF,*.pdf"(Note the "," and ";")4. OnProgressphp_FlashUpload allow JavaScript functions to handle event send by the object.For example:$flashupload->OnProgress="WhatIsIt";In the HTML, you will have to add a JavaScript function named "WhatIsIt" with one parameter<script language="JavaScript">function WhatIsIt(iFlashUploadStatus){if (iFlashUploadStatus==1) alert("Upload completed");else if (iFlashUploadStatus==-1) alert("Upload canceled");else if (iFlashUploadStatus==-2) alert("Upload Fail: IO error");else if (iFlashUploadStatus==-2) alert("Upload Fail: Security error");else if (iFlashUploadStatus==-4) alert("Upload Fail: HTTP Eeror");if (iFlashUploadStatus==2) document.body.style.cursor="wait"; // uploadingelse document.body.style.cursor="";}</script> 5. Triggering upload process from JavaScriptTo 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("Microsoft") != -1) objFlash = window.<?=$HTTP_POST_VARS["FlashUploadName"]?>;else objFlash = window.document.<?=$HTTP_POST_VARS["FlashUploadName"]?>;6. FlashUpload functions that can be called from JavaScript are:FlashUpload_DoUpload -> to start file upload, as explained aboveFlashUpload_GetFileName -> to get the uploaded filenameFlashUpload_GetStatus -> to get the last status of FlashUpload1 = upload completed0 = 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) Price License Purchase $49.99 1 Single developer $499.90 1 Site license $749.85 1 Corporate license Licensing Information Goods and services provided by MasRizal Sold by 2CheckOut.com Inc. (Ohio, USA). 2Checkout & MasRizal accepts customer orders via online checks, Visa, MasterCard, Discover, American Express, Dinners, JCB and debit cards with the Visa and MasterCard logo. PayPal and purchasing using your existing bank account are limited to US currency. PHP_FlashUpload is available for immediate download. After you complete the order, you will receive a confirmation email with your download link. Please ensure your email address is entered correctly during the order process. Customers Who Purchased PHP_FlashUpload 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.
* 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
PHP_FlashUpload is a complete solution to replace the old <input type="File"> with additional functionalities: 1. Filter file that can be uploaded. People can only upload files which you specify. 2. Limit maximum file size. Keep your bandwidth and server resources to the optimum level. Don't let your competitor upload unecessary files to bring down your server. 3. Progress bar. Let your user know how goes the upload. Don't let them wondering whether your website respon to their upload request or not.
Why PHP_FlashUpload?
If you're the business owner, do you want your website uses the latest technology or the 10 years old one? PHP_FlashUpload is a Flash based interactive file upload component.
If you're a programmer, do you want to get into next level or stay like old HTML programmers do? Using PHP_FlashUpload you just set yourself to a higher level than any rookies that only knows <input type="file"> to upload a file.
Join thousands of other programmers and businesses who have successfully offer a better way to upload file for their users. People will love you and your work.
A true bargain! Why use a Java based upload component that's more expensive and harder to use?
Less effort to deliver your project on time and on budget. Why spend lots of time and money learning Flash language if you can have all you needs with PHP_FlashUpload?
Using PHP_FlashUpload you can devote your time focusing on other things more important for you. Spend more time on your business rather than writing codes (and debugging them)
PHP_FlashUpload is the right solution for you!
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.
Limitation: Due to limitation in Flash, HTML, Webserver and PHP, below restrictions apply: 1. FlashUpload CAN NOT be included in the <form>. 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: "Filedata". So the "Action" URL must handle this '$HTTP_POST_FILES["Filedata"]' 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)
Action="URL of script that will handle the uploaded file, required"
Style="limited CSS-style to customize FlashUpload user interface. Optional"
RedirectTo="URL that will be redirected to upon upload completeion. Optional"
ShowUploadButton="true/false. Show the upload button in FlashUpload object. Optional, default=true"
MaxFileSize="Maximum file size allowed for upload in bytes. Optional, default=0=unlimited"
FileFilter="List of title and file extensions allowed for upload. Optional, default=all files"
OnProgress="Name of JavaScript function that will handle events send from FlashUpload. Optional"
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 <form>. 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: "Filedata". So the "Action" URL must handle this '$HTTP_POST_FILES["Filedata"]' 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)
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->Style="color:#000000; border-color:#cc0000";
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 -> FileFilter="Microsoft Word Files,*.doc;*.rtf" To allow Images -> FileFilter="Images,*.jpg;*.gif;*.png;*.bmp" To allow MS Word, MS Excel, and PDF upload -> FileFilter="Word,*.doc;*.rtf,Excel,*.xls;*.csv,PDF,*.pdf" (Note the "," and ";")
4. OnProgress php_FlashUpload allow JavaScript functions to handle event send by the object. For example: $flashupload->OnProgress="WhatIsIt"; In the HTML, you will have to add a JavaScript function named "WhatIsIt" with one parameter <script language="JavaScript"> function WhatIsIt(iFlashUploadStatus) { if (iFlashUploadStatus==1) alert("Upload completed"); else if (iFlashUploadStatus==-1) alert("Upload canceled"); else if (iFlashUploadStatus==-2) alert("Upload Fail: IO error"); else if (iFlashUploadStatus==-2) alert("Upload Fail: Security error"); else if (iFlashUploadStatus==-4) alert("Upload Fail: HTTP Eeror");
if (iFlashUploadStatus==2) document.body.style.cursor="wait"; // uploading else document.body.style.cursor=""; } </script>
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("Microsoft") != -1) objFlash = window.<?=$HTTP_POST_VARS["FlashUploadName"]?>; else objFlash = window.document.<?=$HTTP_POST_VARS["FlashUploadName"]?>;
6. FlashUpload functions that can be called from JavaScript are: FlashUpload_DoUpload -> to start file upload, as explained above FlashUpload_GetFileName -> to get the uploaded filename FlashUpload_GetStatus -> 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 error
This 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
Goods and services provided by MasRizal
Sold by 2CheckOut.com Inc. (Ohio, USA).
2Checkout & MasRizal accepts customer orders via online checks, Visa, MasterCard, Discover, American Express, Dinners, JCB and debit cards with the Visa and MasterCard logo.
PayPal and purchasing using your existing bank account are limited to US currency.
PHP_FlashUpload is available for immediate download.
After you complete the order, you will receive a confirmation email with your download link.
Please ensure your email address is entered correctly during the order process.
Customers Who Purchased PHP_FlashUpload Usually Purchased These Products Too
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