Here we go again :) ... 2.9.f it's working fine for me
Deleted the plugin, installed again from my Piwigo admin options. Uploaded like 10 files with Chrome and IE11. Both working fine, all the images I uploaded are physically on the server.
me: unix, nginx, php 5.6
Offline
windracer wrote:
2.9.f is now broken. The image previews and info work in Chrome, but upload does not: "Upload form is incomplete, please select an album and an image file"
I've tried selecting the album first, then images, and vice versa, same error. Also tried IE, same problem.
By the way, you can try to uncomment lines 61-62 from admin.php , you should see the $POST and $FILES array. Maybe you can see something useful.
Offline
Ok, I think it's related to post_max_size. I did some more testing and with files under 2mb, they uploaded fine. If I tred a 2.1mb file, I get the "Error on file "test.JPG" : The uploaded file exceeds the upload_max_filesize directive in php.ini: 2MB" message as expected.
If I try a bunch of files that go over the 8M post_max_size, THAT'S when I get the "Upload form is incomplete, please select an album and an image file" message (the arrays are empty):
FILES Array ( ) POST Array ( )
So nothing is posted and your plugin thinks the upload form is incomplete, which technically I guess it is since PHP won't do the POST since it's greater than the post_max_size.
Ubuntu 17.10, PHP 7.1.11
Offline
I observed when I created the plugin that PHP is incomplete when throwing errors
http://php.net/manual/en/features.file- … errors.php
Only check for 1 of the possible INI errors using a weird method, you must send "upload_max_filesize" as a hidden input and that is automatically checked.
For "post_max_size" and "max_file_uploads" you must implement similar hidden input methods and check for error yourself as PHP default error codes do not contain that.
For "max_file_uploads" I implemented both JS and PHP error checking. For "post_max_size" I was to lazy.
But if I use form elements "required" attribute on client side it's probably safe to replace that "empty POST/FILES error" that you had with a "post_max_size" error. Only a non-browser (ex. CURL) will be able to bypass "required", to make an empty POST/FILES request.
Last edited by eliz82 (2018-02-19 23:46:34)
Offline
Looks like this plugin is exactly what I need but the download link in your first post doesn't seem to work for me. The plugin doesn't show up in my admin panel either.
How do I get this?
Offline
It looks like the extension has been removed from the repository. At least, I can't find it anymore either.
Offline