show user uploads

mariospapa 26 Feb, 2010
Hello everybody!

I have a question about this useful module we use! Suppose that you create a form called "Submission Form" and you allow registered users to upload a document (i.e. a .pdf file) every time they fill out the "Submission Form". Suppose that the form has 10 fields. I want to rename the filename of the uploaded file with a number for each submission, instead of the default $filename = date('YmdHis').'_'.$chronofile['name'];

Also, is there a way to show all the user records (with these 10 fields for each "Submission Form") everytime the registered user log in to the system, and allow the current user to make changes to his own records and upload a revised version of their document?

Thank you in advance!

PS. I'm using Joomla v1.5.15 and ChronoForms v3.1 RC5.5.
GreyHead 26 Feb, 2010
Hi mariospapa,

I'm sure that you can give sequential numbers to uploads. I'm not sure that you can do it in the file name field simply because you have to have some code to find the next sequence number. You could though rename the file in the OnSubmit after code without any difficulty.

And, yes you can create a form that reads - for example - all the files in a folder and show a list of them with some related links. Needs thinking through and coding but it's definitely possible. I've done something similar with folders of images.

Bob
mariospapa 26 Feb, 2010
Hi GreyHead! Thank you for your quickly response!

Could you please show me the way to implement these two cases, because i'm not so familiar with PhP and MySQL programming. I want to give permissions to all registered users to edit their uploads...

Thanks in advance, again!🙂
GreyHead 27 Feb, 2010
Hi Mariospapa,

I'm sorry but your going to need to get familiar - or find someone else who is.

I try to limit most of my postings here to answers that I can give in a minute or two - both of these code chunks would take a lot longer :-(

Sometimes I can do longer chunks but usually only if they are requested several times - and I have the time to spare.

Bob
This topic is locked and no more replies can be posted.