upload.min.js file in H5a plugin corrupted ? upload.min.js file in H5a plugin corrupted ?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

upload.min.js file in H5a plugin corrupted ?

Started by 406man, March 07, 2023, 09:33:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

406man

I've been trying to deal with some bugs and features in the uploading functions in 1.6.21 including the HTML5 upload. This involves trying to figure out what the code does. I've started looking at the .js files in the upload_h5a plugin and found something odd about the file /plugins/upload_h5a/js/upload.min.js

When I try to display it on my Windows machine it is a solid block of characters without proper separation between lines. See attached screenshot. If I open it in PSPad and ask it to display Special Chars there aren't any. No line breaks or similar.

Could one of the experts say if there's a reason for it to be stored like this.  Is it corrupted ? Can a version of this file be made available that is readable in the normal way ?

ron4mac

#1
Both the minified and un-minified versions of the javascript files are included within the plugin folder.
If debugging is turned on in your gallery and you are logged in as an administrator, the un-minified version of the javascript is used.

You may want to upgrade to 1.6.22; there was a change with the uploader to give better error information.

406man

Thanks for the explanation. I'm not experienced in javascript programming and haven't seen minified format before so it's new to me.