PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Uploaded Files with spaces in filename unable to be retrieved

  1. I see there there are a few other people that have experienced this issue but so far i can't find a solution.

    When someone uploads a file - lets call it "test_resume.pdf" - it uploads fine and when viewing entries in the backend, i'm able to view that file by clicking on it's link.

    However if the file uploaded is titled "test resume.pdf" the file gets uploaded, but the link is returned as "test%20resume.pdf" and the link takes me to a 404 page in my site. Is there a fix for this issue? Also, for the time being, what would be the correct url to one of these affected files. I've tried changing the url to reflect the actual filename (eg, changing test%20resume.pdf to test resume.pdf) but that doesn't seem to work. Is there a method of having GF rename the file appropriately?

    Thanks for you help, sorry if this is redundant.

    Tm

    Posted 12 years ago on Wednesday December 5, 2012 | Permalink
  2. I see you also posted a similar request here:
    http://www.gravityhelp.com/forums/topic/uploaded-filenames-being-escaped#post-99272

    I just closed that topic and we will focus the support here.

    Gravity Forms should handle this without any problem. Please try uploading a file with a space in the name here: http://gravity.chrishajer.com/share-your-files-with-me/

    I uploaded "invalid HTML.png" with that form, and the confirmation email has a link to the file, which exists here: http://gravity.chrishajer.com/wp-content/uploads/gravity_forms/42-4c058edfc0abbf5534dade7c443d2620/2012/12/invalid-HTML.png The link in the entry admin is the same, with the hyphen.

    Looks like Gravity Forms sanitized the name with dashes/hyphens, similar to how WordPress would create a slug.

    Can you share a link to your form where we can upload a file? Please ensure that we will receive a link to the uploaded file so we can check the name.

    Posted 12 years ago on Thursday December 6, 2012 | Permalink