cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Problems with File-Upload
September 24, 2007
3:55 pm
Steffen
Guest

Hi, thanks for this super plugIn, but I do have a real big problems using it for mailing files. I'm on WP 2.2 and it does not name the fields for "file" correctly: it names them cforms_uplad[ instead of cform_uploads[] which does not write these in the correct array. Seems that this is a problem with the filter-mechanism of WP because the code CF delivers is correct.

Has anybody a clou how to make it work the way it should??

Many thanks in advance,

Steffen

September 24, 2007
8:16 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Steffen, what's your URL?

I assume you are using multiple file upload fields? Is one working fine? I can't think of a filter that would causing cform_uploads[]  to be rendered cforms_uplad[ ?!

September 25, 2007
9:36 am
Steffen
Guest

Hey Oliver,

thanks for your quick reply. The URL is biodive.de/upload (for the moment work in progrss and pwd-protected, please use vielfalt / butterfly to visit it). The form has only one File-Upload Field, but as cformsII assumes the Files to be stored in an array it cannot access the files uploaded. I fixed it for now by adding a str_replace after the wp-own filter-programm.

Now I only need to get Captcha workin – t's "redded-out" in my form and i assume this has something to do with GD-Library?? Right??

Greetz, Steffen

September 25, 2007
8:24 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Thanks for the access. It seems it's working now 'cf_uploadfile[]' is properly set as the name of the upload field.

I'm still confused about the fact that your WP has a filter that would rename the field, could it be some other plugin?

Yes, the CAPTCHA feature requires a few things to be in place:

  • GD Library with freetype is supported
  • cookies enabled in browser
  • proper PHP SESSION management (which usually is the case, unless some other plugin resets the session).
October 1, 2007
8:56 pm
Kathi
Guest

I can't get the "file upload" field to work.  When I try to upload a file I get an error message like….

 

Warning:
copy(/home/baylands/public_html/wordpress/wp-content/plugins/contactforms/attachments/20-Kristyn-LetterOfRecommendation.doc):
failed to open stream: Permission denied in /home/baylands/public_html/wordpress/wp-content/plugins/contactforms/cforms.php on line 1392

The code on line 1392 reads as ……

copy($tmpfile,get_option('cforms'.$no.'_upload_dir').'/'.$subID.'-'.$file['name']

[$filefield++]);

 

Also – I inserted (txt,rtf,zip,doc,jpg) in the "allowed extensions" field.

What do I need to do to make this field work?

I really need help fast – I don't know what else to try!  Thank you!

Kathi 

October 1, 2007
9:59 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Can you post your URL please?

Also, you may want to check existence, as well as file and directory permissions of the target directory (for uploads). 

October 1, 2007
10:10 pm
Kathi
Guest

I needed to call my host provider to change the permissions of the "attachments" folder to 777.  Once I did that it worked.  Thanks though!

 

Kathi 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)