forum.coppermine-gallery.net

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

Title: HTML5 multi-file upload plugin
Post by: ron4mac on January 25, 2013, 02: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, 02: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, 02: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, 02: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, 11: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, 11: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, 02: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, 02: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: Phill Luckhurst on January 29, 2013, 09: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, 10: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, 05: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, 10: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, 04: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, 12:20:46 PM
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: Phill Luckhurst 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, 03:57:40 PM
New version of french langage  ;)
Title: Re: New version of french langage
Post by: ron4mac on February 03, 2014, 12:06:31 AM
New version of french langage  ;)

Thank you, Claude.
Title: Re: HTML5 multi-file upload plugin
Post by: wilk on March 09, 2014, 04: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, 05: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, 08: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, 04: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, 12:21:50 PM
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, 03: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: Phill Luckhurst 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, 02: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, 10: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: Phill Luckhurst 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.