Page 1 of 1
[REQ] file upload function..?
Posted: Tue 27. Dec 2005, 18:58
by xyncro
hi ppl..
i'm new here and i want to say that phpwcms roxx..
but i miss something.. a file upload function
i'm talking about the most common files like
.gif, .jpg, .png, .txt, .rtf, .doc, .pdf, .zip, .rar, .xls and .pub
there should also be a way for the uploader to add his/her name to the upload
this would be a great function to add..
thx everyone
/Bertil
Posted: Tue 27. Dec 2005, 19:34
by pico
Hi and welcome
uploading of Files is not supported by phpWCMS for Front-Users cause there is no User/Right-Mnagaement for Frontend-Users. Only Backend-Users can upload Files.
Posted: Tue 27. Dec 2005, 19:44
by Ben
xyncro,
It depends on what you are trying to do, but you can upload files using a form, as I did here -
http://www.emergentmediagroup.com/rfp_upload.phtml
This allows files of only allowable extension to be uploaded to a specified folder and/or attached to an e-mail that is sent to the admin.
Posted: Tue 27. Dec 2005, 20:08
by xyncro
hi ben..
yes..! it's something like this i'm looking for..
could this not only concern a couple of common files in general..?
is this your code/change or where can i get it..?
is it free?
i could very well be interested in the whole rfp module you have there..
thx so much
Posted: Tue 27. Dec 2005, 20:14
by Ben
This is done using the 'email contact form' content part, that has been available since version 1.1.9, I believe. You will need to pay me at least $5,000 US if you want to use it, though.
Take a look at this link -
http://www.phpwcms-docu.de/e-mail_contact_form.phtml
The important part is in the 'value' section of the table:
- file
max. file size: maxlength="10000000"
as attachment: attachment="1"
what kind of attachment: accept="text/*"
out of which folder: folder="content/form"
exclude files:
exclude="php,asp,php3,php4,php5,aspx,cfm,js"
Posted: Tue 27. Dec 2005, 20:24
by xyncro
..thx ben..
..for pointing out what could be used
i'll take a closer look at the info you sent me..
thx once again..