Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#73 2013-01-25 17:08:59
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: abl_droploader: A native drag & drop multiple image uploader
Are the thumbnails created when you use the Images panel for uploading? Are there values entered in the Images panel’s thumbnail dimensions?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#74 2013-01-25 17:15:29
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: abl_droploader: A native drag & drop multiple image uploader
Yes Uli, I first create 2 smd_thumbnails type (carre_130,carre_180), active, with the first checked as default …
Then I Upload a few big images ….
Offline
Re: abl_droploader: A native drag & drop multiple image uploader
After a quick look into the code of smd_thumbnail, I guess it has something to do with a callback (image_uploaded) that both plugins use.
When DropLoader is called by this hook, it sends a JSON result to the browser and exits. I am not sure, but the exit statement may be the problem.
Both plugins have a load order of 5. Perhaps the order in which the callbacks are executed are not always the same. I will test that as soon as possible. I must check, if the plugin load order has an influence on the execution order of callbacks.
Sorry for the inconvenience.
Offline
#76 2013-01-25 17:41:41
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: abl_droploader: A native drag & drop multiple image uploader
Yesss !
Smd_thumbnail must be loaded before your plugin .
I set “4” and all seems fine !
Offline
Re: abl_droploader: A native drag & drop multiple image uploader
Thanks for the reply!
I think, I change the default load order for the DropLoader to 9 in the next release, to minimize the possibility that other plugins are affected by this exit statement.
Offline
#78 2013-01-25 17:52:55
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: abl_droploader: A native drag & drop multiple image uploader
Ok, thanks !
droploader set to 9 and smd thumbnail to 5 and all is ok.
Offline
#79 2013-01-25 17:57:33
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: abl_droploader: A native drag & drop multiple image uploader
BTW, a question …
how many images your plugin is able to load in one shot ?
- Problem with the PHP execution time limit or not ?
- If I set the number to 100 : danger ?
It was a problem of the previous plugin multiple image upload …
Offline
Re: abl_droploader: A native drag & drop multiple image uploader
I think PHP execution time is not be a problem, because the javascript sends files one by one. The PHP execution timer should be reset on each uploaded image.
I have tested with 50 images on my localhost, and that has worked. But I don’t know if this is also the case with 100 images in one go.
Offline
#81 2013-01-25 18:31:04
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: abl_droploader: A native drag & drop multiple image uploader
I try one hour ago to upload 98 images : no problem.
But if after that I try to generate the smd thumbnails in one go, impossible. I must do it in 3 time.
Now I’m able to generate the thumbnails at the same time I upload, it sould be ok to upload and generate about 100 images/thumnails, il the javascript send files one by one … and generate thumbnails image by image ???
Offline
Re: abl_droploader: A native drag & drop multiple image uploader
jpdupont wrote:
and generate thumbnails image by image ???
Yes, exactly. There is one HTTP request per image.
Offline
Re: abl_droploader: A native drag & drop multiple image uploader
There is a new version 0.17 available. This release fixes some bugs and adds a new option requested by feragnoli. It is now possible to specify multiple target fields for the uploaded images in the write panel.
New options should now be inserted correctly, which was wrong in the previous version. The new options added in release 0.16 are now in effect.
I have also changed the plugin load order from 5 to 9 (lowest priority). This should ensure, that the _image_uploaded_-event is processed by other plugins before DropLoader is called. This is important, when using it together with smd_thumbnail or other plugins that use this callback.
Important:
When updating a previous DropLoader installation, you must manually change the load order to 9 in the plugins panel! This is not automatically done when updating an already installed plugin.
Please see the initial post for details.
Offline
Re: abl_droploader: A native drag & drop multiple image uploader
Can’t get this to work on the write tab with svn 4.6ish
Offline