i have a table “upload_files” i want to join a file when i insert e
record in the table :
1* insert into upload_files information about the file uploaded and
who upload it upload_files.save …
2*copy the file in a special path (massi/id/)
thanks
massinissa mecharek wrote:
i have a table “upload_files” i want to join a file when i insert e
record in the table :
1* insert into upload_files information about the file uploaded and
who upload it upload_files.save …
2*copy the file in a special path (massi/id/)
thanks
You may want to look into the Act_as_Attachment plugin for such task.
You would have to override the full_filename method however.