Hi there, first thanks for taking the time to read and if possible help me with this.
I am relatively new to yii but I have to admit I am loving it and I have managed to do a lot with it so far, but im stuck on something and need some help.
what I need to know is there a way to add a file(s) upload to a model form, that will upload the file(s) but NOT store the data for the upload field(s) into the database?
I have it working now but ONLY if I add the file field to the database, which is something I do not want. I want the other fields added to the database but NOT the file upload fields.
for example my form has the following user inputs
title (what the user wants the uploaded file to be called)
category (the category id the user wants the file to be in)
ringtone_file(the file to be uploaded)
Now when the form is uploaded I do the following when all validation is complete
1, save the details of the form to the database
2, rename uploaded file to the "id" of the database entry for this model and move the ringtone_file to correct folder
however I do not need the field in the database for "ringtone_file" but I cannot get it to save to the database unless this field is added?
so can anyone help me out and tell me how I can add a file upload to a model form WITHOUT having to save the file details to the database.
I hope I have explained it ok but if not please feel free to ask questions.
and thank you for the help
regards
wayne