Hugo
|
| Posted: 05/22/2003, 3:37 AM |
|
Hi all,
I'm using CCS 2.0, Mysql,PHP...
I'm making a classified application with an upload files gallery.
The classifieds informations are in one table.The upload files linked to the classifieds are in another table.
One classified can have up to 10 upload files linked and stored on the server.
I 've defined an upload ID for all the 10 upload files linked to the classified.
It quite hard to make it work...
Has anyone example links to see anysite where it works...
Thanks a lot !!!!
|
|
|
 |
glerma
|
| Posted: 05/22/2003, 7:52 PM |
|
Hugo. I am working on a custom FileUpload class to address this issue. I should be done soon. Leave an email address and I will send you a copy when I'm finished.
But before that, tell me this. Are you looking to store the images in the database or on a file-system?
|
|
|
 |
RonB
|
| Posted: 05/24/2003, 8:06 AM |
|
I don't know if this is what you mean but I use the editable grid. I define 10 insert rows for example and make sure no records present in the database are showing up on the page(in the where clause I specify: "where primarey_key=0". I substitute the files textbox with the fileupload component. Now when you show the page you get a grid with ten empty rows all containing the upload component. Filling ten rows and submitting will trasfer all files selected.
Ron
|
|
|
 |
Pulp
|
| Posted: 05/26/2003, 1:57 AM |
|
I do almost the same as Ron apart for the "where primary_key = 0"
First because i have a tuple in my table having primary_key = 0, for join reasons...
Second, because i want to use my upload form as an update form too ! So i have another condition, quite similar : "where primary_key > 0 AND primary_key = $primary_key"
This way, if I send no $primary_key, it is considered as nul and then can't be > 0. Then i have a simple upload form, just as Ron.
But if i send a $primary_key id, then I get an update form. Hope this will be useful to someone.
Pulp
|
|
|
 |
|