[REQ] file upload function..?

Use GitHub to post feature requests for phpwcms.
Locked
xyncro
Posts: 13
Joined: Tue 27. Dec 2005, 18:51
Location: Swedish Westcoast

[REQ] file upload function..?

Post 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
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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.
xyncro
Posts: 13
Joined: Tue 27. Dec 2005, 18:51
Location: Swedish Westcoast

Post 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
Ben
Posts: 558
Joined: Wed 14. Jan 2004, 08:05
Location: Atlanta
Contact:

Post 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. :lol: :lol: :lol:

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"
xyncro
Posts: 13
Joined: Tue 27. Dec 2005, 18:51
Location: Swedish Westcoast

Post 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..
Locked