Copy link to clipboard
Copied
Hello, anyone know how can I upload very large files with Adobe Flash or how to use SWFUpload?
Thanks in Advance, All help will be very appreciated.
if the error is from php it's a server limit, not a flash limit.
you need to adjust your php.ini or .htaccess file upload limit.
Copy link to clipboard
Copied
what happens when you use the filereference or file class?
Copy link to clipboard
Copied
hi, I use code like this: http://hub.tutsplus.com/tutorials/creating-a-reusable-flash-uploader-with-actionscript-30-and-php--a...
it's using php and I can upload with that about 150 MB and I fully don't know how to upload large files. (> 2 GB)
Copy link to clipboard
Copied
you're making a web based app?
what happens (error message) when file size exceeds 150mb?
Copy link to clipboard
Copied
1. yes
2. I'm getting error message from php
if( $_FILES['Filedata']['error'] == 0 ){
if(move_uploaded_file( $_FILES['Filedata']['tmp_name'], $uploads_dir.$_FILES['Filedata']['name'] ) ){
echo 'ok';
exit();
}
}
echo 'error'; // Overhere
exit();
Copy link to clipboard
Copied
if the error is from php it's a server limit, not a flash limit.
you need to adjust your php.ini or .htaccess file upload limit.
Copy link to clipboard
Copied
not working, is there any other way to make large file uploader in Flash?
I found out that you can't upload more than 200 MB with php because of it's server side language and that you have to use Javascript with JQuery plugin, but I don't know how to use JQuery with Flash.
Copy link to clipboard
Copied
the limit is set by the server, not php and not flash.
the upload can be set in php.ini and possible .htaccess.
send an email to your server's admin/support and see you can do anything about the server's upload file size limit.
Copy link to clipboard
Copied
I'm not sure if my php.ini is set up properly but everytime it froze at 1% of uploading.
Copy link to clipboard
Copied
you control your server and can restart it?
Copy link to clipboard
Copied
you're really cool now I can upload large files. I've uploaded successfuly 2.90 GB file on localhost.
What I did is that I've added these lines to .htaccess file.
php_value upload_max_filesize 8G
php_value post_max_size 16G
php_value memory_limit 24G
but now I don't know how to edit .htaccess file at GoDaddy.com hosting.
PS. thank you very much for your help
Copy link to clipboard
Copied
you're welcome.
contact support at godaddy and see if they allow you to change the upload limits.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now