Skip to main content
Topic: Client side image resize (Read 3192 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: Client side image resize

Reply #15
Here's the result of the test run. File selection results in no upload action. In Chrome, the console provides the following error:


Code: [Select]
Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.


Anyone know where to go from there? Thanks guys! You all are amazing!

Re: Client side image resize

Reply #16
It's as if nothing is being passed into the compress function? Can't seem to figure this one out.   :-X ;D

Re: Client side image resize

Reply #17
Sorry, that's my limit on the subject... :(
Javascript is really not something that I'm so proficient with. :'(
Bugs creator.
Features destroyer.
Template killer.

Re: Client side image resize

Reply #18
@FF / MFG test
Bugs creator.
Features destroyer.
Template killer.

Re: Client side image resize

Reply #19
Sorry, that's my limit on the subject... :(
Javascript is really not something that I'm so proficient with. :'(
 
 It's all good eman. Thanks for your help! It must be something simple. My troubleshooting time has been limited. Hopefully time will come available soon!


Re: Client side image resize

Reply #21
Could someone give me a jumpstart on including a basic integration hook script? Basically output a "test" message in the integrate_attachment_upload hook so I can verify the hook is active and the function returns correctly. Currently there is an active hook, a file called dropzone.subs.php in the sources/subs directory, the active hook is set to call the function drop_zone(). Something like this:

Code: [Select]
function drop_zone()
{
global $modSettings;

$something = "test";
    return $something;

}

The normal attachment upload drag and drop appears with no "test" message. What is incorrect here? Yours truly is a php dummy, for full disclosure, in case it isn't obvious!  ;D

Re: Client side image resize

Reply #22
hmm.. is that a php function of a javascript one? O_o
Bugs creator.
Features destroyer.
Template killer.

Re: Client side image resize

Reply #23
hmm.. is that a php function of a javascript one? O_o
 
 

Supposed to be a php function...

Spuds attachment resize mod uses php with this hook.