forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: ron4mac on January 25, 2013, 01:23:10 am

Title: HTML5 multi-file upload plugin
Post by: ron4mac on January 25, 2013, 01:23:10 am
Here is my attempt at putting together an alternative file upload method using HTML5 and javascript.  Features are: concurrent multi-file upload with drag-and-drop and progress indicators. 'Chunked' uploading makes it possible to upload files larger than server limitations. User groups can be configured to allow larger (or smaller) uploads than the global CPG setting.

Comments and suggestions welcome.

Internet Explorer compatibility seems to be only with version 10+.

Those who find issues ... please indicate platform/OS and browser when posting.

PLEASE NOTE: This plugin is included as a core part of CPG 1.6
Title: Re: HTML5 multi-file upload plugin
Post by: Jeff Bailey on January 25, 2013, 01:30:30 am
Thank you for your contribution.

I haven't had the chance to install it yet but I looked through the code and it looks great, I did notice an empty style.css though.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on January 25, 2013, 01:36:50 am
Yep ... newbie here.  Haven't yet found the way to get a CSS link in the head.  It's just a place holder 'till then.  Or ... perhaps inline <style> serves the purpose here.  Will be resolved by v1.0.

Thanks.
Title: Re: HTML5 multi-file upload plugin
Post by: Jeff Bailey on January 25, 2013, 01:56:14 am
Haven't yet found the way to get a CSS link in the head.  It's just a place holder 'till then.
http://documentation.coppermine-gallery.net/en/dev_plugin_hooks.htm#plugin_hooks_filename_page_meta
I've never needed to add a style sheet but you could try page_meta.
Title: Re: HTML5 multi-file upload plugin
Post by: Αndré on January 25, 2013, 10:07:23 am
page_meta should be fine, alternatively you could also use gallery_header (http://documentation.coppermine-gallery.net/en/dev_plugin_hooks.htm#plugin_hooks_filename_gallery_header).
Title: Re: HTML5 multi-file upload plugin
Post by: Αndré on January 25, 2013, 10:17:48 am
Your plugin looks really amazing. I suggest to change some parts of the language file tough.

Find
Code: [Select]
$lang_plugin_html5upload['html5_method'] = 'HTML5 multi-file upload';and replace with
Code: [Select]
$lang_plugin_html5upload['html5_method'] = 'Multiple files - HTML5-driven';(to match the description of the flash uploader)


The second row overwrites the first one:
Code: [Select]
$lang_plugin_html5upload['html5upload'] = 'Upload file(s) using HTML5 methods';
$lang_plugin_html5upload['html5upload'] = 'HTML5 Upload';


In codebase.php, I suggest to find
Code: [Select]
cpg_db_query("INSERT INTO {$CONFIG['TABLE_CONFIG']} (name, value) VALUES ('html5upload_autoedit', '1')");and replace with
Code: [Select]
cpg_db_query("INSERT INTO {$CONFIG['TABLE_CONFIG']} (name, value) VALUES ('html5upload_autoedit', '0')");so that option isn't enabled by default. It again matches the behavior of the flash uploader and if there are any error messages you're able to read them (I just tried to upload some unsupported file types, saw the red boxes for a very short time and was then redirected to the empty edit files page).
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on January 25, 2013, 01:31:52 pm
Thanks for the suggestions, André.  I assume that I would submit v1.0 in this thread ... correct?
Title: Re: HTML5 multi-file upload plugin
Post by: Αndré on January 25, 2013, 01:37:07 pm
Yes. I added you to the contributor group, so you're able to edit your posts. Please attach any new version to the initial post (as far as I know you can add 3 attachments per post as contributor).
Title: Re: HTML5 multi-file upload plugin
Post by: phill104 on January 29, 2013, 08:34:45 pm
ron4mac,

It would be great if you could add a list of currently supported browsers to your original post. I'm quite suprised to find IE9 and IE10 currently do not work.

I really love this plugin, brilliant job.
Title: Re: Re: HTML5 multi-file upload plugin
Post by: ron4mac on January 29, 2013, 09:43:25 pm
ron4mac,

It would be great if you could add a list of currently supported browsers to your original post. I'm quite suprised to find IE9 and IE10 currently do not work.

I really love this plugin, brilliant job.

Thanks, Phill.

I don't have a lot of resources to test it out.  I developed on Mac OS with Safari, Chrome and Firefox.  I might be able to put together a VirtualBox IE setup to explore getting it to work there (if at all possible).

Thanks for your feedback.
Title: Re: Re: HTML5 multi-file upload plugin
Post by: ron4mac on January 30, 2013, 04:51:27 am
I'm quite suprised to find IE9 and IE10 currently do not work.

Phill,

I put together a VirtualBox and tried IE9 and, indeed, it doesn't look like it will function correctly.  But I installed a fresh version of IE10 and had no real problems uploading files with the plugin.  I did make a few changes to my development version of the javascript that were only for minification purposes and should not have affected anything logical.  But just in case, I'll upload a new version (as 1.0.1) to match what I'm using.
Title: Re: HTML5 multi-file upload plugin
Post by: Αndré on January 30, 2013, 09:09:31 am
Do we really need the minified JS library if it makes trouble? It saves just 2,6 KB and if you keep in mind that somebody wants to upload something to the gallery, those few KB are just a drop in the bucket.
Title: Re: HTML5 multi-file upload plugin
Post by: jeeveser on February 05, 2013, 03:25:00 am
Hi,
I installed this and I'm getting :

Critical error
There was an error while processing a database query

Anyone know why?
Title: Re: HTML5 multi-file upload plugin
Post by: Αndré on February 05, 2013, 11:20:46 am
Please enable debug mode and post the extended error message.
Title: Re: HTML5 multi-file upload plugin
Post by: electrop on April 22, 2013, 10:19:18 pm
Small addition : french language file
(rename file as french.php befor putting it into /lang directory)

For a full translation, in codebase.php, replace line 97 with :
Code: [Select]
<td class="tableb">{$lang_plugin_html5upload['files']}</td>and add line
Code: [Select]
<td class="tableb">{$lang_plugin_html5upload['files']}</td>in your language file.
Title: Re: HTML5 multi-file upload plugin
Post by: electrop on April 22, 2013, 10:22:18 pm
Sorry  :-[

Add line
Code: [Select]
$lang_plugin_html5upload['files'] = 'Fichiers';into your language file
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on April 23, 2013, 01:45:50 am
Small addition : french language file
(rename file as french.php befor putting it into /lang directory)

Could you please provide a translation for:
Code: [Select]
$lang_plugin_html5upload['autoedit'] = 'Automatically go to edit after error-free upload completes';
[ and French translations for English in the configuration file would be nice, too ... full I18N ]

Then I will add the updated version with full French language.

Merci de votre aide.
Title: Re: HTML5 multi-file upload plugin
Post by: electrop on May 06, 2013, 03:53:32 pm
My proposal for the last string  :
Code: [Select]
$lang_plugin_html5upload['autoedit']='Aller automatiquement à l\'édition à la fin d\'une séquence d\'envoi sans erreurs';
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on May 14, 2013, 03:18:32 pm
My proposal for the last string  :
Code: [Select]
$lang_plugin_html5upload['autoedit']='Aller automatiquement à l\'édition à la fin d\'une séquence d\'envoi sans erreurs';

Thanks, Electrop.  See new version (1.1) in original post.
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 12:51:08 pm
Stupid question: How to use it?

Installed plugin. There`s no readme file.
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 01:16:55 pm
Finnish translate.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 02:23:17 pm
Stupid question: How to use it?

Installed plugin. There`s no readme file.

You are right .. it would have been considerate of me to have had some README file. I assume you were able to use it successfully anyway.

Thank you for the Finnish translation.
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 02:37:17 pm
Doh! Changed translation to utf-8.

There`s no change at all in default file upload? Where and how this plugin does the job.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 02:43:26 pm
Doh! Changed translation to utf-8.

There`s no change at all in default file upload? Where and how this plugin does the job.

When installed (and enabled) it becomes an additional option in the 'upload' dialog.
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 03:00:24 pm
Hmm... No such option. Am I missing something. Using Chrome.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 03:16:05 pm
Hmm... No such option. Am I missing something. Using Chrome.

Please check in the 'User Settings' that users are allowed to select the upload method.
(or that the default method is HTML5 Upload)
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on August 31, 2013, 03:25:38 pm
Hello ron4mac,

If an album is not selected and one file is loaded, this causing a critical error.
Can this be avoided?

Thank you.
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 03:31:32 pm
Thanks. Got it :)
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 03:32:18 pm
If an album is not selected and one file is loaded, this causing a critical error.

If an album is not selected, you should just be getting an alert that says an album must be selected first.  Check that is not some problem with your translation file (remove it temporarily).
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on August 31, 2013, 03:42:46 pm
I have no warning when I click on the browse button opens the file upload window.

 :-\
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 03:45:57 pm
Tried upload both ways, drag and drop and selecting files. Seems to do the thing. Status bar is blue, but its says "files in queue=0". When I press Edit images button it shows an empty album.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 03:51:09 pm
Tried upload both ways, drag and drop and selecting files. Seems to do the thing. Status bar is blue, but its says "files in queue=0". When I press Edit images button it shows an empty album.

I'm at a loss .. there have been no reported problems with this plugin (you are using V1.2, correct?)
Perhaps try re-installing.
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on August 31, 2013, 03:58:41 pm
I tested all three versions available and the same thing happens in all

Thank you.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 04:06:36 pm
I tested all three versions available and the same thing happens in all

Thank you.

Can you give me specifics of your installation?  CPG version?  Installed where?  Browser version?
If you can PM me site info/login, perhaps I can look at it.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 04:19:06 pm
Tried upload both ways, drag and drop and selecting files. Seems to do the thing. Status bar is blue, but its says "files in queue=0". When I press Edit images button it shows an empty album.

The edit uploaded files feature relies on time settings of your server and browser.  It is essentially going to show you files that were uploaded (dated) after the point in time when you began the upload.  Check that your server and PC times are correct.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 04:57:14 pm
Below the number of post in the forum.  ;D

@Niecher
I can see the problem you are having ... I can't immediately see what the cause of the problem is.  I don't have the time right now to create a CPG 1.5.20 installation to see if it has something to do with V1.5.20.  I will do so on Sunday night or Monday morning and get back to you after that.
Title: Re: HTML5 multi-file upload plugin
Post by: tassu on August 31, 2013, 04:59:28 pm
Reinstalled plugin. No help.
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on August 31, 2013, 05:11:28 pm
Ron4mac Ok, thanks for your patience.

It happens with the three available versions of the plugin. Take your time, here I am to read you.

Regards.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on August 31, 2013, 06:04:00 pm
@tassu & Niecher
You are both using different CPG versions (.20 and .24) but are seemingly having the same problem. Now I'm wondering if there have been issues with this plugin but you two are the first people to report it. :-\

Could you please let me know your server info (platform, PHP version, etc.)?

@anyone else
Has anyone else experienced problems with this plugin where uploaded files do not make it into the album?
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on August 31, 2013, 09:33:27 pm
@tassu & Niecher
Could you please let me know your server info (platform, PHP version, etc.)?

Quote
VERSION INFO :
------------------
PHP version                5.3.27      OK
MySQL version            5.5.28-29.1 OK
Coppermine version    1.5.20      stable
Platform                     Linux Kernel 2.6.32
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on September 02, 2013, 02:33:34 pm
@tassu & Niecher

I installed versions 1.5.20 and 1.5.24 of CPG and used a couple different PHP versions with each.  Sorry, but I am unable to duplicate the problem you are having with uploaded files not actually making it into albums. Without error/logs or privileged access to your site, I can not determine where the problem might be.

Sorry it's not working for you. If you at some point discover what the issue is, please let me know what you found.
Title: Re: HTML5 multi-file upload plugin
Post by: pols1337 on September 02, 2013, 05:36:23 pm
Hi, I've tested it out.

Some thoughts:
1. Maybe show a ticker that keeps track of how many files have been uploaded.  The uploading started immediately, which was sort of unexpected, and it finished before I even knew what was going on or how many files were uploaded.
2.  I don't think the HTML5 Upload Config saves the option for Keywords or Mime Types.  To be more precise, I enter in "jpeg/jpg/png/gif/bmp" for the mime types and check the box for Keywords, yet after I save both those fields are blank. 
3.  Enlarge the upload area.  Right now it's pretty small, and the whole point is to quickly drag your pictures over right?  Your target is kind of small  ;)
 
Otherwise, works well!
Title: Re: HTML5 multi-file upload plugin
Post by: phill104 on September 02, 2013, 08:20:50 pm
My personal preference is for the smaller target as it makes it easier to grab the source files.
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on September 03, 2013, 08:49:02 pm
New version (1.2.5) tested:

Quote
Error "file size": Ok
Error "Allowed file extensions": OK
Error "unselected album": Fault

Regards
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on September 03, 2013, 11:55:02 pm
New version (1.2.5) tested:

Regards

Niecher, those messages do not exist in a standard install of CPG 1.5.20, nor are they a part of your theme (curvinosa).  Is it possible that you have some other plugin that is conflicting with this HTML5 Upload plugin?

Thank you for the Spanish translation.
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on September 04, 2013, 11:43:42 am
I mean, that the error messages to the file extension and the file size is displayed, but when the album is not selected the error message is not displayed.

If no error message displayed when the album is not selected, then performed the file upload causing a critical error.

Perhaps the issue is in the file "upload5.js" or the file "upload5.min.js"

Regards.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on September 04, 2013, 02:24:03 pm
I mean, that the error messages to the file extension and the file size is displayed, but when the album is not selected the error message is not displayed.

If no error message displayed when the album is not selected, then performed the file upload causing a critical error.

Perhaps the issue is in the file "upload5.js" or the file "upload5.min.js"

Regards.
Okay, now I understand. However, I have not been able to duplicate that behavior on my computers OSes and browsers.  Can you please let me know the operating system and web browser that you are using.

Also, I find it strange that the language for the album selector is different for my installation of 1.5.20.  This language comes directly from CPG, not the plugin.

Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on September 04, 2013, 09:57:18 pm
Quote
My OS Windows 7
My FireFox browser 23.0.1

Admittedly, I've changed the translation of some lines coppermine language, for example, is not the same as saying "Album seleccionado" to "Selecciona un Album"

Quote
Album seleccionado = Selected Album
Selecciona un Album = Select album

Regards
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on September 05, 2013, 02:05:28 am
My OS Windows 7
My FireFox browser 23.0.1

I tried a VirtualBox with Win7 and FF and it worked okay for me with my installation of 1.5.20. So I took a better look at your theme (switcher?), and I'm pretty sure that I've solved the problem. There is a form element in the search box at the top of your theme that conflicted with the album selector.

Try this modified version and let me know if there are any additional issues.

Thanks for your feedback and patience :)
Title: Re: HTML5 multi-file upload plugin
Post by: Niecher on September 05, 2013, 12:56:36 pm
ron4mac, thank you very much.

The problem was on the theme, the search box as you well said was the problem.

I tested again all versions of the plugin, and they all work perfectly.

Regards and thank you very much for your patience.
Title: New version of french langage
Post by: claude on February 02, 2014, 02:57:40 pm
New version of french langage  ;)
Title: Re: New version of french langage
Post by: ron4mac on February 02, 2014, 11:06:31 pm
New version of french langage  ;)

Thank you, Claude.
Title: Re: HTML5 multi-file upload plugin
Post by: wilk on March 09, 2014, 03:14:47 am
Polish translation for 1.2.6.

Unfortunately I have an issue with this plugin. Uploading works ok, but changing plugin settings does not. When submitted they are reverted to default values. Database stores default values, but they are not updated. CPG: 1.5.26
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on March 09, 2014, 04:44:19 am
wilk, thank you for the translation.

I can't see where the problem with saving settings could be.  When you click on the button for 'Apply changes', does the display immediately revert to the default settings?  What theme are you using? Are you using other plugins? If the other plugins have settings, do they update okay?
Title: Re: HTML5 multi-file upload plugin
Post by: wilk on March 09, 2014, 07:21:23 pm
When I click the apply button I'm redirected to the same settings page (translation file suggests that some info using 'saved' string should be displayed, but nothing happens) and the settings are reverted to default (installing plugin correctly inserts values to DB).

Enabling debug mode does not show any errors, only one notice for admin.php "Notice line 72: Undefined variable: choices", debug shows that DB is queried for SELECTs correctly (I'm not a plugin developer, but I see no point in invoking 8 separate SELECTs when $CONFIG array is already populated).

I use customized "curve" theme, but in renamed folder.
The other (enabled) plugins are: onlinestats 2.6, fav_button 1.3, keyboard_navigation 2.2, stripwheel 0.4, recaptcha 2.1.
The html5upload (1.2.6) is last in the queue, moving it to top does not solve the problem.
Other plugins (only onlinestats and recaptcha have settings) update their settings correctly.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on March 10, 2014, 03:12:01 am
Sorry, wilk, I've run an install of CPG 1.5.26 with all of the plugins that you are running, but I have not been able to duplicate the failure that you are experiencing.

Would you please try this:  in the admin.php file of the html5upload plugin, comment out line 11.  So it would look like this:
Code: [Select]
//$superCage = Inspekt::makeSuperCage();
Let me know if that makes a difference.  Sorry for the trouble. :-\
Title: Re: HTML5 multi-file upload plugin
Post by: wilk on March 10, 2014, 11:21:50 am
It made no difference.

However I've managed to fix your plugin:

Code: [Select]
--- admin.php.bak Thu May 16 14:19:38 2013
+++ admin.php Mon Mar 10 10:56:40 2014
@@ -57 +57,3 @@
-echo '<form action="index.php?file=html5upload/admin" method="post">';
+echo <<< EOT
+<form action="{$superCage->server->getEscaped('REQUEST_URI')}" method="post">
+EOT;

Hardcoded URL was incompatibile with my .htaccess redirect of index.php to /.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on March 10, 2014, 02:04:42 pm
wilk, excellent work!!

Thank you for your effort in discovering the issue.  I'll make the change for the next release.

And I totally agree with your comment about the number of database calls in the configuration logic. I plan to combine the plugin's parameters into one database call (at least for the CPG 1.6 release if not now).
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on June 09, 2014, 01:37:53 pm
Awesome plugin.
Thanks a lot.
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on June 09, 2014, 02:02:06 pm
   Allow entry of bulk Keywords and/or User Fields (optional)

Can this plugin have Allow entry of  bulk title and description?
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on June 09, 2014, 02:11:34 pm
So .. you would want all the images that you are uploading to have the same title and description?  Seems pretty unusual.
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on June 09, 2014, 02:21:38 pm
True but sometimes could be very useful.

Images with the same title and desc: http://allvip.us/gallery/thumbnails.php?album=266 (http://allvip.us/gallery/thumbnails.php?album=266)
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on June 09, 2014, 02:32:45 pm
I'll consider making it an optional feature whenever I may do more work on this plugin.

Thanks for being one of few to express appreciation for the plugin.
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on June 09, 2014, 02:41:23 pm
Thanks.
I'm only sorry I did not notice this plugin before.
Is amazing: drag and drop,4 files at a time,html5 no flash that can block the page,bulk keywords,bulk custom field.
Uploding is more professional style now.

Title: Re: HTML5 multi-file upload plugin
Post by: phill104 on June 09, 2014, 04:35:35 pm
Hey, we all appreciate it. I think it had been a little overlooked though. Due to having a huge amount going on at home I have got behind in creating a new plugins showcase which hopefully will bring more users to excellent plugins such as yours. And hopefully a variant of it will be part of 1.6 as you know. It appears this has been overlooked for upload to the repository. I believe that is because we were all locked out of it for quite some time.
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on October 07, 2014, 06:43:00 pm
Inside cpg1.5.x_plugin_html5upload_v1.3 is html5slideshow that adds a slideshow on album thumbnails page.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on October 07, 2014, 07:35:31 pm
Inside cpg1.5.x_plugin_html5upload_v1.3 is html5slideshow that adds a slideshow on album thumbnails page.
YIKES!! :o  How the heck did I do that?
Odd why it took 32 downloads before anyone pointed out my stupidity ???
... attached the correct file in the original post ... apologies :-[
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on October 07, 2014, 09:14:12 pm
Thanks.I just install it.
"Title and Caption added to possible bulk entry items" - thanks for adding my desired option too.

Can you include a screenshot in the first post?
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on October 08, 2014, 02:25:51 pm
Can you include a screenshot in the first post?

I don't see the need to do so. But I'm interested in why you think I should.
Title: Re: HTML5 multi-file upload plugin
Post by: allvip on October 21, 2014, 04:23:57 pm
You right. Is clear what the plugin does wihout a screenshot.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on December 21, 2014, 01:52:13 pm
A new version (1.3.2) has been added to the original post. It supports 'chunked' file uploading, making it possible to upload files larger than some configured server limitations.
Title: Re: HTML5 multi-file upload plugin
Post by: pols1337 on December 27, 2014, 09:56:32 pm
Thanks for continuing to update the plugin
Title: Re: HTML5 multi-file upload plugin
Post by: wilk on April 08, 2015, 02:35:49 am
Och, I've missed some updates. Here's an updated polish langpack (with help pages) for 1.3.4.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on April 08, 2015, 02:43:36 am
Here's an updated polish langpack (with help pages) for 1.3.4.
Thanks, wilk.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on May 12, 2015, 03:42:23 pm
Somehow in the big rewrite of this plugin between versions 1.3 and 1.3.2, I managed to lose the client-side file checks for size and valid extension type. Version 1.3.6 (in the original post) has this feature recovered. Also, there was some debug code that was left enabled (remove file chunklog.txt in CPG root). Sorry for any problems. :-\
Title: Re: HTML5 multi-file upload plugin
Post by: egfg on May 20, 2015, 10:48:18 am
I'm using IE11 as a browser and when I try to use this plugin I get, "NOT AVAILABLE WITH THIS WEB BROWSER".
I found a work-around.

Edge is the default page mode that IE 11 comes up in .
To get around the issue for now, without installing another browser you can do the following:

When you get the "NOT AVAILABLE WITH THIS WEB BROWSER" message press F12 (if you can't press the F12 key, you can get to it off the Tools
 [the Gear looking icon at the top right of IE] menu.) This brings up IE development tools.

On the toolbar there is an icon that looks like a monitor and computer. Press that icon.

You should now see the Emulation mode with the Document Mode selected as Edge. Press on the drop down list and select 10 off the list.

The plugin should work fine now.

NOTE: do not close the F12 Developer Tools until you've finished uploading or it will go right back to the "NOT AVAILABLE WITH THIS WEB BROWSER".
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on May 20, 2015, 12:46:14 pm
I'm using IE11 as a browser and when I try to use this plugin I get, "NOT AVAILABLE WITH THIS WEB BROWSER".
Thank you for the feedback. I'll look into the issue.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on May 20, 2015, 06:01:41 pm
I'm using IE11 as a browser and when I try to use this plugin I get, "NOT AVAILABLE WITH THIS WEB BROWSER".
I tried with Windows 7 Home Premium and the latest IE11, but I was unable to duplicate the issue. It worked okay for me unless I chose a Document Mode of 9 or less. Perhaps there is an issue with your particular installation. Is there another machine where you can try it?
Title: Re: HTML5 multi-file upload plugin
Post by: phill104 on May 20, 2015, 09:56:08 pm
I can confirm that I had no problems with IE11/Win8.1
Title: Re: HTML5 multi-file upload plugin
Post by: united-networking on July 11, 2016, 02:12:46 pm
Hallo,

just discovered this and we are quite happily using it - flash be gone...

Though we do have 2 things we'd like to point out in the plugin manager list (see included screenshot):
--
regards,
-- united-networking
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on July 11, 2016, 05:15:33 pm
  • shouldn't there be an icon to access the plugin's configuration?
  • title and version number seem to stem from the plugin in the list above this one; if on first place, they're empty.
Try moving the HTML5 Upload plugin ahead of the other one to see what difference it makes.
I won't be able to look into any possible issue the the HTML5 Upload plugin until several days from now.
Title: Re: HTML5 multi-file upload plugin
Post by: united-networking on July 11, 2016, 05:21:04 pm
Hi,

as we said, when moved to first place, title and version number are empty.
For illustration see attached screenshot.

As for fixing this, there's not that much of a hurry, since the plugins function is not affected 8^)
--
regards,
-- united-Networking
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on July 12, 2016, 01:15:09 pm
As for fixing this, there's not that much of a hurry, since the plugins function is not affected 8^)

I have not been able to create any condition that causes the behavior that you are seeing ... and there have been no other reports of any similar behavior.
It would seem that whatever is causing the problem is specific to your installation. Perhaps another plugin that is misbehaving or a corrupt CPG installation.
Have you turned on debugging and checked error logs for any clue?
Perhaps try installing a fresh copy of the HTML5 Upload plugin ... it almost seems like the configuration.php file for your current copy must be corrupt.
Title: Re: HTML5 multi-file upload plugin
Post by: united-networking on July 14, 2016, 01:48:46 pm
Hi,

the plugin manager list effect we saw was IMHO produced by pluginmgr.php, based on the variables set in your plugin. Thus we suspect a state of those variables where pluginmgr.php is caused to look for title and version number in the previously listed (upper) plugin, empty if none. Or a bug triggered somehow in pluginmgr.php.

Where would we turn on debugging or find logs thereof?

Our unaltered configuration.php from your plugin is as follows. Looks normal.
Code: [Select]
<?php
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

require_once 
'./plugins/html5upload/initialize.inc.php';
global 
$lang_plugin_html5upload$lang_gallery_admin_menu;

$name $lang_plugin_html5upload['html5upload'];
$description $lang_plugin_html5upload['plug_desc'];
$author 'Ron Crans';
$version '1.3.6';
$plugin_cpg_version = array('min' => '1.5');
$extra_info '<a href="index.php?file=html5upload/admin" class="admin_menu">'.cpg_fetch_icon('config'1)."$name {$lang_gallery_admin_menu['admin_lnk']}</a>";
$install_info $lang_plugin_html5upload['plug_info'];
?>

From the $extra_info in there we finally gathered the URL index.php?file=html5upload/admin to access your Config page. But still, where would we be able to access that normally?
--
regards,
-- United Networking
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on July 15, 2016, 12:53:30 pm
the plugin manager list effect we saw was IMHO produced by pluginmgr.php, based on the variables set in your plugin. Thus we suspect a state of those variables where pluginmgr.php is caused to look for title and version number in the previously listed (upper) plugin, empty if none. Or a bug triggered somehow in pluginmgr.php.
Assuming that you are running CPG 1.5.42, there is no way that should be happening. Would it be possible for you to provide me with a link to CPG and an admin login? You can send the information to ron4mac atsign me dot com.
Title: Re: HTML5 multi-file upload plugin
Post by: pictureproject.me.ly on May 01, 2017, 01:25:10 pm
Hi Ron,

as I cannot send private messages, I need to attach the German lang file here.
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on May 01, 2017, 02:22:36 pm
Thank you!
Title: Re: HTML5 multi-file upload plugin
Post by: pictureproject.me.ly on May 01, 2017, 02:38:58 pm
You're welcome!
If anything missing, pls let me know.
Title: Re: HTML5 multi-file upload plugin
Post by: pictureproject.me.ly on May 01, 2017, 02:43:10 pm
I have a suggestion for your plugin:
Please make it possible, that the photos will be uploaded in chronological order (e.g. A-Z).

Recently, I uploaded 15 photos which had to be uploaded in chronological order.
After the upload finished, all the photos have been mixed in their order.
That's a little confusing as now I need to upload pic by pic to keep the correct order.

Many thanks in advance!
Title: Re: HTML5 multi-file upload plugin
Post by: pictureproject.me.ly on May 01, 2017, 02:50:43 pm
Well, I think I found my mistake.

When keeping the order while uploading, I need to set "Number of concurrent uploads" to 1 as well to disable the option "Automatically go to edit after error-free upload completes".
Then it works fine to keep the required order :)
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on May 01, 2017, 03:04:59 pm
Please make it possible, that the photos will be uploaded in chronological order (e.g. A-Z).
Because of concurrency, files may arrive at the server out of sequence from how they were selected. As you discovered, setting "concurrent uploads" to 1 helps to alleviate that issue. And there are also file sorting options after files are uploaded. Perhaps an option on the upload form asking that this particular upload be done 1 file at a time could be useful.

Thanks for your feedback.
Title: Re: HTML5 multi-file upload plugin
Post by: theqe2story on September 11, 2019, 07:49:38 pm
I just added this onto my 1.5.48 Gallery and it worked a treat immediately.

So sorry I hadn't noticed it sooner!

One wee thing - the little yellow question mark for help next to "File Description" brings up a blank help window - anything I can do about that?

Thanks!!
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on September 12, 2019, 05:00:16 am
One wee thing - the little yellow question mark for help next to "File Description" brings up a blank help window - anything I can do about that?

In the plugin file codebase.php, replace line 109:
Code: [Select]
$desclabl .= '&nbsp;'. cpg_display_help('f=empty.htm&amp;base=64&amp;h='.urlencode(base64_encode(serialize($lang_bbcode_help_title))).'&amp;t='.urlencode(base64_encode(serialize($lang_bbcode_help))),470,245);

with:
Code: [Select]
$desclabl .= '&nbsp;'. cpg_display_help('f=empty.htm&amp;h=lang_bbcode_help_title&amp;t=lang_bbcode_help',470,245);
Title: Re: HTML5 multi-file upload plugin
Post by: pclogicnz on February 03, 2021, 12:37:19 am
I have installed this plugin and all works fine on one site. ie upload files and immediately returns to the photolibrary and lists the files.   

The second site once the upload is done , it just sits there for a while then gives an error for the site  http://192.168.66.109:83/editpics.php?album=330&newer_than=1612347624 
This site can’t be reached 192.168.66.109 took too long to respond.  You then close that and files are uploaded anyway.
The ip address for the photolibrary server is not 192.168.66.109  but I did find it in the HOSTS file on this CENTOS 5. I have removed that and rebooted.  Still same problem.
Anybody have any ideas why one site does it and another site does not.?
Anybody know how to fix it?
Title: Re: HTML5 multi-file upload plugin
Post by: pclogicnz on February 03, 2021, 02:29:09 am
Sorted this, the CONFIG - GENERAL SETTINGS have the URL for the photogallery, mine had the http://192.168.66.109:83  as the URL. This has been running for years even though local ip address had changed as we went. Only the HTML5 multi file upload does not like it if the URL does not match the IP etc. Changed to a FQDN and works fine now.   
Title: Re: HTML5 multi-file upload plugin
Post by: phill104 on February 03, 2021, 04:52:08 am
Sorted this, the CONFIG - GENERAL SETTINGS have the URL for the photogallery, mine had the http://192.168.66.109:83  as the URL. This has been running for years even though local ip address had changed as we went. Only the HTML5 multi file upload does not like it if the URL does not match the IP etc. Changed to a FQDN and works fine now.   

Thanks for resolving your problem. This particular setting is one that is very important to have correct, If wrong things may seem to work but some very odd little errors, like you have found, crop up. Some themes don’t behave, some plugins and very often bridging fails if this setting is wrong.
Title: Re: HTML5 multi-file upload plugin
Post by: nambroque on April 23, 2021, 11:19:05 pm
I have installed this plugin and it works fine, except for the "Use filename as title" feature.
Can someone please help me with that?
Another valid option for me would be that it does not appear.
Title: Re: HTML5 multi-file upload plugin
Post by: nambroque on April 24, 2021, 09:24:22 am
I have installed this plugin and it works fine, except for the "Use filename as title" feature.
Can someone please help me with that?
Another valid option for me would be that it does not appear.

I mean, as that feature doesn´t work, and it's not really necessary, is there any way to make it not to appear?
Thanks
Title: Re: HTML5 multi-file upload plugin
Post by: ron4mac on April 24, 2021, 05:21:01 pm
It never ceases to amaze me ... in over 4000 downloads, no-one ever gave feedback that the feature was not working ::)

Please remove the html5upload plugin and upgrade your site to CPG 1.6.x.  That upload method is included as part of CPG 1.6.x and the filenames as title functions correctly.
Title: Re: HTML5 multi-file upload plugin
Post by: nambroque on April 24, 2021, 06:31:54 pm
Ok, thanks!