Title: file upload type problem
Last modified: August 18, 2016

---

# file upload type problem

 *  [kelson](https://wordpress.org/support/users/kelson/)
 * (@kelson)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/file-upload-type-problem/)
 * On 0.72 gold, I’m having a problem with allowing file types for file upload. 
   The form says to put a space before and after each type – so ” jpg gif png ” 
   should work. The problem is that the final space seems to be getting truncated
   somewhere. Whenever I go back to the config page, it shows up as ” jpg gif png”(
   with no final space) and when I try to upload a file, it only allows jpg and 
   gif.
    I rearranged the line as ” jpg png gif ” – it still truncates the final
   space, and now it allows jpg and png but not gif. I figure I can put a junk extension
   in there, or just not upload any gifs. But I suspect the same thing might happen
   with what users are allowed to upload, because I see the same trailing-space 
   being chomped problem on that line.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mike Little](https://wordpress.org/support/users/mikelittle/)
 * (@mikelittle)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/file-upload-type-problem/#post-24870)
 * Hi Kelson,
    This looks like it’s a MySQL issue. I’m pretty sure I remember MySQL
   truncating trailing whitespace in varchar columns. I’ve always meant to look 
   into changing the way we parse those lists. I guess it’s more urgent now. Mike
 *  [otaku42](https://wordpress.org/support/users/otaku42/)
 * (@otaku42)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/file-upload-type-problem/#post-24875)
 * The same problem applies to the list of users that are allowed to upload files,
   by the way.
 *  [otaku42](https://wordpress.org/support/users/otaku42/)
 * (@otaku42)
 * [22 years, 8 months ago](https://wordpress.org/support/topic/file-upload-type-problem/#post-24876)
 * I submitted a patch along with a bugreport to the sourceforge bugtracker (id 
   [#825371](http://sourceforge.net/tracker/index.php?func=detail&aid=825371&group_id=51422&atid=463233)).
   The patch applies for 0.72 gold.
    Bye, Mike

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘file upload type problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [otaku42](https://wordpress.org/support/users/otaku42/)
 * Last activity: [22 years, 8 months ago](https://wordpress.org/support/topic/file-upload-type-problem/#post-24876)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
