Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author lynton_reed

    (@lynton_reed)

    These look correct what are your specific issues ?

    Please provide more details :

    What error are you getting ?

    Is the upload shortcode inside a workflow or directly on a page or post ?

    Do any filetypes work ?

    Thread Starter kfranklin

    (@kfranklin)

    I believe I tried this in a workflow and then pasted the shortcode is directly on a page. It looks like every file type works expect doc and docx. When I try to upload these two, I get the Filetype not accepted button.

    Plugin Author lynton_reed

    (@lynton_reed)

    I just pasted your shortcode and it worked here so it is correct.

    Can you try a different document and see if that works.

    Also check the default upload settings on the “File Upload” admin page tab and make sure you have not accidentally modified the “deny_file_types” to include doc files. That is the only reason I can think off that would cause this to fail.

    Thread Starter kfranklin

    (@kfranklin)

    This is the exact short code in the “File Upload” page:

    [wtf_fu_upload deny_public_uploads=”0″ use_public_dir=”1″ wtf_upload_dir=”wtf-fu_files” wtf_upload_subdir=”default” accept_file_types=”jpg|jpeg|mpg|mp3|png|gif|wav|ogg|doc|pdf|docx” deny_file_types=”htaccess|php|php3|php4|php5|cgi|aspx|asp|aspx|sh|phtml|shtml|pl|py|pyc|pyo” inline_file_types=”jpg|jpeg|mpg|mp3|png|gif|wav|ogg|doc|pdf|docx” image_file_types=”gif|jpg|jpeg|png|doc|pdf|docx” max_file_size=”5″ max_number_of_files=”10″ auto_orient=”1″ create_medium_images=”0″ medium_width=”800″ medium_height=”600″ thumbnail_crop=”1″ thumbnail_width=”80″ thumbnail_height=”80″]

    Is there any other place I could be accidentally denying this file type? Is the default not overriding the workflow?

    Plugin Author lynton_reed

    (@lynton_reed)

    These are the default and I think the problem may be that you have set up doc docx and pdf as image file types and inline_file_types, so the failure is pobably due to the backend trying to create image thumbnails for non image files.

    accept_file_types=”jpg|jpeg|mpg|mp3|png|gif|wav|ogg|doc|pdf|docx”

    this is ok, and means that doc pdf and docx are acceptable by default and you will not need to add them as attributes in your shortcode.

    Alternatively you could take them out of here and put them in the shortcode when required like in the one you posted here. (this is the preferred way as it is then clear at the point of usage).

    These two should be put back to their defaults without the |doc|pdf|docx
    These are most likely causing your issue.

    inline_file_types=”jpg|jpeg|mpg|mp3|png|gif|wav|ogg|doc|pdf|docx” image_file_types=”gif|jpg|jpeg|png|doc|pdf|docx”

    Let me know if that works.

    Thread Starter kfranklin

    (@kfranklin)

    It may be a combination of two things. That what you put above. I also realized that my workflow wasn’t coded in accordance with the default. Thanks you lead me in the right direction.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Filetype Error’ is closed to new replies.