Not getting the full effect?

Image previewer add-on.
Post Reply
gptvan
Posts: 6
Joined: Fri Jun 13, 2008 12:28 am

Not getting the full effect?

Post by gptvan »

Hi there,
For a reason I can't work out, I can't get JImageUpload to work like the demo - no image previews -
please see http://www.monkeyred.com/jfile/applet_h ... eview.html for what I'm talking about.

This site is hosted with GoDaddy on a Linux box, and I found I've had to use the PHP version - could that be why I'm not seeing the preview images?

thanks in advance for any help.

Greg

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Not getting the full effect?

Post by support »

I've tested your URL. The applet loads and I'm able to preview images from here. However, upload is not working. Your server returns a 405 error (not allowed).

Did you try the PHP sample in a a browser to upload a single file from the provided HTML form ?

gptvan
Posts: 6
Joined: Fri Jun 13, 2008 12:28 am

Re: Not getting the full effect?

Post by gptvan »

Hi there,

Thanks for the quick response.

The PHP page works fine....http://www.monkeyred.com/jfile/process.php

I upgraded my hosting package last night after writing my first message, and that appears to have solved the problem as to why I wasn't seeing the full capability of JImageUpload. However, my problem now seems to be not that I'm getting a 405 error (like you), but instead a message that "ImageReadParam num source & dest bands differ!"
Any help to get through this?
thanks again,
gptvan

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Not getting the full effect?

Post by support »

"ImageReadParam num source & dest bands differ!" is another issue when loading image. Are you trying a grayscale image or RGB ? We had this issue for grayscale images and we've fixed it in 2.1 (which will be available at beginning of July)

gptvan
Posts: 6
Joined: Fri Jun 13, 2008 12:28 am

Re: Not getting the full effect?

Post by gptvan »

You're absolutely right - I was trying to load a grayscale image - I'll look forward to that fix. Meanwhile though, I'm back to getting the server error.

Thanks again for any help....


G

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Not getting the full effect?

Post by support »

You're not far from the solution ;)
Look at: http://www.monkeyred.com/jfile/applet_http_ipreview.js
Both "url" parameters are not correct:
...
document.write('url="http://www.monkeyred.com/jfile/upload/process.jsp" ');
...
<PARAM NAME="url" VALUE="http://www.monkeyred.com/jfile/upload/process.jsp">
...

And it should be:
...
document.write('url="http://www.monkeyred.com/jfile/process.php" ');
...
<PARAM NAME="url" VALUE="http://www.monkeyred.com/jfile/process.php">
...

Modify the JavaScript accordingly and try again. Try to upload small images first.
Then with bigger images, you should may have a issue with large image (8MB) with GoDaddy depending on hosting packages. I've a GoDaddy account too :) and default upload_max_filesize=8MB but I know it could be increased. See their FAQ.

Does it help ?

gptvan
Posts: 6
Joined: Fri Jun 13, 2008 12:28 am

Re: Not getting the full effect?

Post by gptvan »

Success! Thank you for your support - it really has been magnificent.

Gt

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Not getting the full effect?

Post by support »

Great !

I'm sure you will post more question soon such as "how to setup PHP.ini of GoDaddy to upload big images", "how to upload bigger file than allowed by GoDaddy". :mrgreen:

Post Reply