spamtheman
06-28-2005, 07:57 AM
I'm trying to upload an image to a database
I do this all the time with php/actionscript/mysql all together
My problem this time is the client wants a cms in flash so that when you create a client you can upload a logo at the same time, and i have to use coldfusion (which i'm not familiar with, but seen as i know php/mysql figure it's just a case of applying different formatting)
So what i have is a form in flash to fill in the details
submit using "cf.query" in a .asr file
This inserts the data, and i get it to return the inserted data's id
this then opens a .cfm file that i can pick the image i want to upload then i submit and it uploads the image via a cfc file with the returned id number as it's reference
What i need to happen is you can select an image but it doesn't upload, it just passes the info back to flash and when you submit, it creates the database entry and uploads the image
So i suppose my question is, is there anyway i can pass the file info(ie all the data that usually gets passed throught the form tag and enctype) back to flash so that when i submit it can post the data to a cfc file to upload my image?
Sorry if this sounds a bit confusing
Cheers
Andy
I do this all the time with php/actionscript/mysql all together
My problem this time is the client wants a cms in flash so that when you create a client you can upload a logo at the same time, and i have to use coldfusion (which i'm not familiar with, but seen as i know php/mysql figure it's just a case of applying different formatting)
So what i have is a form in flash to fill in the details
submit using "cf.query" in a .asr file
This inserts the data, and i get it to return the inserted data's id
this then opens a .cfm file that i can pick the image i want to upload then i submit and it uploads the image via a cfc file with the returned id number as it's reference
What i need to happen is you can select an image but it doesn't upload, it just passes the info back to flash and when you submit, it creates the database entry and uploads the image
So i suppose my question is, is there anyway i can pass the file info(ie all the data that usually gets passed throught the form tag and enctype) back to flash so that when i submit it can post the data to a cfc file to upload my image?
Sorry if this sounds a bit confusing
Cheers
Andy