Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 03:43:11 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: form with file upload  (Read 1360 times)
nesquick

Offline Offline

Posts: 12


« on: June 11, 2008, 03:55:32 PM »

Hi,
I modify some pages of the form module so I can allow a file upload.

The modified pages are in the .zip, you just replace the existing pages by these in modules/form/

Some explainations (there is a complete README in the zip)
- modify_field.php : added a option "upload file"
- modify.php : added a type "file_upload"
- view.php : added a lot a stuff

You can set the max size of the file, the mime types allowed and the directory where to put the uploaded files, but you have to do it in the code (in view.php)

The 3 modified pages include a new page (here : FR.php) which contains the text in french. So you can modify easily the text and change the language.

I'm sorry, my README is in french and my comments in the pages too.

Hope that help someone, someday Smiley
Logged
mistiq

Offline Offline

Posts: 1


« Reply #1 on: July 21, 2008, 04:37:34 PM »

Hi,
i replaced the form files with these files from that archive but is not working for me....can you halp me please?/
Logged
sharmpro

Offline Offline

Posts: 64



WWW
« Reply #2 on: July 24, 2008, 08:28:06 AM »

Hi,
some time ago I released a module with the feature you requested.

http://www.websitebaker2.org/forum/index.php/topic,10014.msg58854/topicseen.html#msg58854

Best regards,

Stefano
Logged

ghost06

Offline Offline

Posts: 53


« Reply #3 on: September 08, 2008, 10:42:22 AM »

error installing module sad sad
Quote
Warning: main(/web/htdocs/www.mysite.com/temp/unzip/info.php) [function.main]: failed to open stream: No such file or directory in /web/htdocs/www.mysite.com/admin/modules/install.php on line 61

Fatal error: main() [function.require]: Failed opening required '/web/htdocs/www.mysite.com/temp/unzip/info.php' (include_path='.:/php/lib/php/') in /web/htdocs/www.mysite.com/admin/modules/install.php on line 61

help huh
Logged
Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« Reply #4 on: September 08, 2008, 11:07:33 AM »

help huh

Hello.
Try this one.


Hi,
some time ago I released a module with the feature you requested.

http://www.websitebaker2.org/forum/index.php/topic,10014.msg58854/topicseen.html#msg58854

Best regards,

Stefano


Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!