Hey Guys, I'm trying to talk a very large online org (who shall remain nameless) to replace their current content submit form with chronoforms - almost got - em... Need one thing.
I've got a content submit form setup and working. There's an image upload field which works, but it needs to upload the image in multiple file sizes.
Not sure where to begin. I'm guessing it will be a tough one but I though I'd check in with y'all first.
Thanx
Mark
I've got a content submit form setup and working. There's an image upload field which works, but it needs to upload the image in multiple file sizes.
Not sure where to begin. I'm guessing it will be a tough one but I though I'd check in with y'all first.
Thanx
Mark
Hi Mark,
We had this capability in CFv3 with the Image Resizer plug-in. it was written by a user and hasn't been upgraded to CFv4. That probably isn't terribly difficult but it's not a ten-minute job either. The plug-in gave you the option of creating three re-sized copies of the uploaded image I think and worked quite nicely.
Bob
We had this capability in CFv3 with the Image Resizer plug-in. it was written by a user and hasn't been upgraded to CFv4. That probably isn't terribly difficult but it's not a ten-minute job either. The plug-in gave you the option of creating three re-sized copies of the uploaded image I think and worked quite nicely.
Bob
Thanx Bob,
I found a nice php/jquery upload script that I'm calling with an iframe - i'll post it all here when/if I get it done.
One problem though. I'm using this form/script to upload content to a very modified/hacked K2 component. The previous developer set things up so that when you submit an image, the image file name is changed to "Image" + "K2 Item ID". It's then md5 hashed and uploaded to the appropriate folder. When viewing the item, K2 matches the image and the item based on the image's filename.
I've made a CF form that uploads to K2 just fine. But here's my poor solution for getting the K2 Item Id into the image filename.
1. Use a DB query in the CF form to get the highest K2 Item ID# and add "1" to it.
2. Call the jquery image upload script in an iframe and append the iframe src url with the ID
3. Access the ID in the jquery script using GET. The script does the rest...
This works fine unless two people decide to submit content at once, then their image filename will essentially be the same.
Is there any way I can more effectively/safely get the next ID for K2 items?
Thanx again
Mark
I found a nice php/jquery upload script that I'm calling with an iframe - i'll post it all here when/if I get it done.
One problem though. I'm using this form/script to upload content to a very modified/hacked K2 component. The previous developer set things up so that when you submit an image, the image file name is changed to "Image" + "K2 Item ID". It's then md5 hashed and uploaded to the appropriate folder. When viewing the item, K2 matches the image and the item based on the image's filename.
I've made a CF form that uploads to K2 just fine. But here's my poor solution for getting the K2 Item Id into the image filename.
1. Use a DB query in the CF form to get the highest K2 Item ID# and add "1" to it.
2. Call the jquery image upload script in an iframe and append the iframe src url with the ID
3. Access the ID in the jquery script using GET. The script does the rest...
This works fine unless two people decide to submit content at once, then their image filename will essentially be the same.
Is there any way I can more effectively/safely get the next ID for K2 items?
Thanx again
Mark
Hi Mark,
It's never easy to be sure that you have the correct record key until you have saved the record :-(
Could you just add a little random string into the title to avoid the possibility of a conflict?
Bob
It's never easy to be sure that you have the correct record key until you have saved the record :-(
Could you just add a little random string into the title to avoid the possibility of a conflict?
Bob
I'm not sure at this point.
The prev developer hacked up k2 pretty good, we're still trying to get our bearings.
Looks like something will need to be added though - thanx for looking into it
Mark
The prev developer hacked up k2 pretty good, we're still trying to get our bearings.
Looks like something will need to be added though - thanx for looking into it
Mark
This topic is locked and no more replies can be posted.