• I have scanned through the documentation and see that .xls and .csv aren’t listed as valid file extensions when using the CF7 feature to allow people to attach files with their submissions. Any ideas for a workaround? Or why this file type can’t be attached?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter Cultivar Designs

    (@cultivardesigns)

    Thank you for your reply, Takayuki, but I think you didn’t read my message closely enough. I have seen that article, but my question is about uploading an excel or csv file, which is not reference in that article. I’m looking for a way to allow that kind fo file upload. Thank you!

    @cultivardesigns

    That actually is referenced in the link Takayushi provided. You have to modify the default acceptable file types — see under: “Adding file uploading fields in your form”. Also see:

    Contact Form 7 applies default restrictions for file type and file size when you do not set the filetypes: and limit: (file size) options explicitly. Default acceptable file types (extensions) are: jpg, jpeg, png, gif, pdf, doc, docx, ppt, pptx, odt, avi, ogg, m4a, mov, mp3, mp4, mpg, wav, and wmv. Default acceptable file size is 1 MB (1048576 bytes).

    Thread Starter Cultivar Designs

    (@cultivardesigns)

    HI @red Sand Media Group – thank you for your reply and clarification. I guess how it was worded was confusing to me. I’m obviously NOT an experienced CF7 user! ??

    So, to confirm, I can still specify a .xls or .csv file type and that will work? It’s just saying that if I don’t specify, it won’t accept that type by default? I thought it was providing a list of acceptable file types that you could specify if you want.

    Thank you! And sorry for my misunderstanding @Takayushi!

    @cultivardesigns

    Glad to help. ??

    So, to confirm, I can still specify a .xls or .csv file type and that will work?

    Yes…you have to specify the acceptable file types if you want to accept something not on that list.

    I thought it was providing a list of acceptable file types that you could specify if you want.

    No, that’s if you don’t specify. “Contact Form 7 applies default restrictions for file type and file size when you do not set the filetypes: and limit: (file size) options explicitly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to allow excel file attachment to Contact Form 7 submission’ is closed to new replies.