PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 4.0 (http://www.photopost.com/forum/bugs-vbulletin-4-0/)
-   -   Flash Uploader Issues (http://www.photopost.com/forum/bugs-vbulletin-4-0/145902-flash-uploader-issues.html)

gatorsfootball May 26th, 2011 12:37 PM

Flash Uploader Issues
 
Before I upgraded from 3.0 to 3.1, the flash uploader worked great. Now when I try to upload the images, it stops and says "File is to Big." Also, the same files upload fine using the standard uploader.

Chuck S May 26th, 2011 01:19 PM

I do not beleive the flash uploader has changed. 3.01 was merely a bug fix release and I am not aware of any changes to the flash stuff.

What is your maximum filesize limit? Is the file under this? Is the file bigger than your maximum allowed php filesize in PHP info?

I have tested the flash uploader in 3.01 and it seems to work fine.

gatorsfootball May 26th, 2011 01:41 PM

The file size authorized is set to "0" (unlimited), and the PHP settings are as follows:

upload_max_filesize 128M 128M
upload_tmp_dir no value no value

Chuck S May 26th, 2011 02:58 PM

Under your filetypes listing your saying there is no max size it is usually set to 2097120 or something like this by default in vbulletin and as such would become the max flash upload size.

gatorsfootball May 26th, 2011 04:12 PM

No problem. I gave up and turned the flash upload settings off, and now use the standard upload feature. CLOSED!

Chuck S May 26th, 2011 06:55 PM

Use whichever. I am merely pointing out if you want your flash upload size larger you want to make sure your filetypes settings have the max filesize set higher as thats where the flash uploader gets its limits from.

Steff September 9th, 2011 09:07 AM

Hi Chuck I'm having the same problem as above.
My upload_max_filesize 1000mb
And php memory limit is set to 200mb

I'm trying to upload images of about 5000 x 5000 (or higher).
From what I've learned since yesterday GD2 has a limitation of about 4000 x 4000 so I set up ImageMagic instead but still get this issue. Just as gatorsfootball says the old manual upload works fine but Flash upload says file to big.
Can you think of any place other than Files and extensions where an upload limit is set?

I've looked at the upload script in the flash upload directory (clientscripts) and it says it is set to no limits.

PS
Thanks for the help yesterday with the missing JPG extentions... As I had a very recent database back up (only a few hours old) I re-inserted the table Files and extensions and all is well again. I'll put that one down to a dickey SQL :)

Steff September 9th, 2011 09:10 AM

Can I just add that I think this is a dimensions problem rather than a physical memory problem... or so it seems.

Chuck S September 9th, 2011 10:20 AM

once you send your server info I will take a look. I have checked and see nothing sent yet.

Steff September 9th, 2011 11:04 AM

Oops... didn't see this until now sorry.
Just sent through (via contact us) administrators login details for you.

Chuck S September 9th, 2011 11:06 AM

yeah were you not sending those details as we where talking about filesize issue in another thread?

Steff September 9th, 2011 11:14 AM

Got your message. Is the file type you uploaded over 7mb in size and around about the dimensions of 7000 x 7000? As I'm able to upload images via Flash smaller than those sizes.

Chuck S September 9th, 2011 11:19 AM

Nope it is not and dont think I have anything 7000x7000

The flash uploader itself may have specific restrictions on the size it can handle. That is outside our control as its an option in our program the actual uploader is code from another company. We can not alter there coding.

If you know if can not handle over 7mb uploads then this is where you want to set your upload limits.

Turn off the flash uploader. Can you upload that image using the normal uploader?

Steff September 9th, 2011 11:28 AM

I read some of the limitations of the Flash uploader you use in VBGallery and it seems that over 2mb is an issue with uploading. However, the Flash uploader will handle file sizes much bigger like 100mb or more. From what I've read so far it is down to how the script reads the upload.php or flashupload.php and then if the PHP isn't set up correctly there is the problem. I've tried to get around this by setting up htaccess and force the script to accept the php settings... but nothing.

I have checked through the script and there are no settings that are hard coded (except for the editable upload.php and flshupload.php)

What I'm basically determined is that there is a simply misconfiguration and the uploader isn't using all the memory that it can from PHP.

I can upload larger files by the manual way without any issues at all.

Chuck S September 9th, 2011 11:50 AM

The normal upload which we do support and code seems to work fine.

I do know where we have commented before that in the upload script we do set the max flash upload filesize as the lowest common filesize. So if your lowest filetype is 2mb then your limit is 2mb.

Steff September 9th, 2011 01:25 PM

1 Attachment(s)
**** SORTED FOUND THE ANSWER ****

I've spent the past few hours looking through the code for the flash uploader and here's where most of the things go wrong and need to be looked at or corrected.

Flash uploader needs to have the correct PHP setting on serverside:
Quote:

php_value max_execution_time 1200
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value memory_limit 64M
Is a good set up (although I've set my memory limit much higher ;) )

Once that is ok you'll need to go to Admincp>VBGallery>Edit Filetypes and set every setting the same.
The reason for this is because the flash uploader seems to read the lowest file size and sets the maximum upload file size to that. So even though jpg is set to 8mb it will not upload if avi is set a 2mb. This seems to be the case even though I don't use any other settings other than image formats.
I've attached a screen shot of the File type area for you to see.

I'm now able to upload images of 12000 x 12000 @ 9mb without any errors at all using Flash uploader.
Hope this helps.

Oh, I didn't need to edit the upload.php or the flashupload.php I left them with the default values

Chuck S September 9th, 2011 01:33 PM

Yes that was your issue as stated we get filesize from the extension list. I know we brought that up in other threads here.


All times are GMT -5. The time now is 09:15 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97