Hi,
I am using JFileupload, Jimageupload & Jfileupload.
I went through the tutorial & set up for two thumbnails upload.
this works ok with one strange out come. The scaling_small.properies file & the scaling_medium.properies file contains the line
outformat=jpg
however the medium files are savd with the extension .JPEG whereas the small file write as i required as a .jpf file.
Q1 why is this?
I have found a work round by putting
<PARAM NAME="template" VALUE=":shortname:' + '.jpg">'); in .
Q2 ideally i would like to be able to sue the template approach on both name and call the files
:shortname:' + '_large' + '.jpg" and :shortname:' + '_small + '.jpg"
can this be acheived?
Q3 Can i get each file type ( large and small) to write to a different directory?
Thanks
multi file upload problemRe: multi file upload problemQ1:
Try to remove "template" parameter and replace in your scaling.properties files: renamepolicy=append by: renamepolicy=renameifneeded Q2: Did you try id parameter as explained in tutorial ? <PARAM NAME="smallfilterparam3" VALUE="id"> <PARAM NAME="smallfiltervalue3" VALUE="small_"> http://www.jfileupload.com/products/jim ... nails.html Can it fit to your need ? Q3: No, it would require source code customization. We can provide it but we need to quote it. contact support(at)jfileupload(dot)com if you're interested in. Another solution is to do file moving on server-side depending on prefix (such as all starting by small_ go to uploads/small/ folder). Does it help ?
Re: multi file upload problemre Q1, that worked great.
re Q2: Did you try id parameter as explained in tutorial ? <PARAM NAME="smallfilterparam3" VALUE="id"> <PARAM NAME="smallfiltervalue3" VALUE="small_"> i did use this which added small_ to the title. However what i wanted to do was add _small at the end of the file ( before .jpg) as this is to be added to an existing site where all the images have been stored in this way. ( over 1000 images) so i wanted to fit in with the existing naming. I dont understand what ( or how) this bit of code is ment to work. re q3: i guess i have to live with it & move all the existing sizes into one folder (looks lik i have to rename them anyway) May I ask a new quetion. Q4 does it matter what order the variations to the .js file are in? eg if i add a line with a new param can it just go at the end? Thanks for prompt reply & a great product.
Re: multi file upload problema new snag
I've just noticed that the small thumbail is always 160 x120 . despite is properties requesting 200x150. I've looked through the files but cant see where this size is comming from (or why it doesnt use the properties set in the scaling_small.properties file ) The file only contains---------------------- #scaling_small.properties: maxwidth=200 maxheight=200 # Output image format after scaling (same as input if commented). # GIF outformat is not available. outformat=jpg # quality allows to select compression quality from 0.0 to 1.0 quality=1.0 renamepolicy=renameifneeded Re: multi file upload problemParameter order does not matter. You just have to make sure is it not after '<APPLET>'.
For wrong scaling values, are you sure you've declared the 2 scaling.properties files in applet ? <PARAM NAME="additionalfilterid" VALUE="medium,small"> <PARAM NAME="mediumfilter" VALUE="jfileupload.upload.client.filter.ImageFilter"> <PARAM NAME="mediumfilterproperties" VALUE="scaling_medium.properties"> <PARAM NAME="smallfilter" VALUE="jfileupload.upload.client.filter.ImageFilter"> <PARAM NAME="smallfilterproperties" VALUE="scaling_small.properties"> If it's ok then try to close all browser windows to make sure the applet is unloaded. Also, try to clean Java cache: Start->Control Panel->Java->First tab->Delete temporary files
Re: multi file upload problemI discovered the scaling problem was only in firefox 2 , version 3 is fine so i am happy with that.
All these tests were performed on my own local server, running as an ip address url , not localhost. Today i put up all the files on the clients web server.To my great surprise the ftp upload is failing. looking at the Java console, I can see it logs in ok, but the moment it starts to transfer it immediately fails. the end of the console log reads 220-This is a private system - No anonymous login 220-IPv6 connections are also welcome on this server. 220 Please note: files for your website must be stored under the htdocs directory. 26-Apr-2009 21:33:59 jfileupload.transfer.client.ftp.FTPUploadTransfer run INFO: Upload failed 26-Apr-2009 21:33:59 jfileupload.transfer.client.ftp.E A INFO: Disconnected from ftp://213.171.193.5 any ideas? Thanks
Re: multi file upload problemSolved,
the ftp password was mistyped. Curiously the java console seemed to indicate that it had logged in. all that remains to do now make the purchase & impress the client. Thanks for all your help. It is a terrific product... al be it confusing to set up. Thanks again Re: multi file upload problemGreat ! Thanks for the feedback.
Feel free to post any question here. |