By kyphong on
I'm just the newbie in module developing. I have some problem in file uploading. Can you show me how i can upload a file, please?
Thanx a lot.
I'm just the newbie in module developing. I have some problem in file uploading. Can you show me how i can upload a file, please?
Thanx a lot.
Comments
The process is essentially
The process is essentially the same as in version 5, though the settings are located at slightly different paths.
drupal.org --> Documentation --> Getting Started --> Core Modules --> Upload: collaborate with files
Content Type settings are at admin/content/types and permissions are at admin/user/permissions.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
My module likes this.
I have done like this article show, but file_check_upload('file') does not support in drupal 6.0, can you help me?
http://groups.drupal.org/node/10305
I had the same issue...I was
I had the same issue...I was able to get the upload to work like this...
It still doesn't work.
I have just copy your code to my module, but actually, it doesn't work. It display the message "There was an error uploading your picture".
This has to be on the form
$form['#attributes']['enctype'] = 'multipart/form-data';
http://www.universalpantograph.com