Home › Forums › Front-end Issues › Front End Uploading › Reply To: Front End Uploading
Sorry i should’ve pointed out i’ve added it to the allowed file types in my theme functions.
I’ve narrowed it down (somewhat…) since adding the file type to the allowed list, i’ve noticed that if the file has spaces in it, so “file name” it doesn’t get uploaded. Therefore it has to be “file-name” or “file_name” and it uploads it.
HOWEVER it’s still not being attached to the post, BUT when i var_dump the array i get this:
[“filename”]=>
string(22) “does-it-need-no-spaces”
But the url is blank
[“url”]=>
bool(false)
EDIT: Actually, the filename is also being set the same as the post title.
My Upload Page code http://pastebin.com/TBiSU4WR
My Form Export http://pastebin.com/ZdKMwDtK
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.