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
Not getting the full effect?Re: Not getting the full effect?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 ? Re: Not getting the full effect?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 Re: Not getting the full effect?"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)
Re: Not getting the full effect?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 Re: Not getting the full effect?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 ? Re: Not getting the full effect?Success! Thank you for your support - it really has been magnificent.
Gt Re: Not getting the full effect?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". |