Title: [ERROR] Cannot upload file
Last modified: August 18, 2016

---

# [ERROR] Cannot upload file

 *  [Hendy Irawan](https://wordpress.org/support/users/ceefour/)
 * (@ceefour)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/error-cannot-upload-file/)
 * Tried to upload .png image to a post on WordPress 2.0.4 / Windows Server 2003/
   PHP 5.1 / MySQL 5 / Apache 2.
 * WordPress database error: [Field ‘post_content_filtered’ doesn’t have a default
   value]
    INSERT INTO wp_posts (post_author, post_date, post_date_gmt, post_content,
   post_title, post_excerpt, post_status, comment_status, ping_status, post_password,
   post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order,
   post_mime_type, guid) VALUES (‘3’, ‘2006-10-31 13:40:03’, ‘2006-10-31 06:40:03’,”,‘
   firefox-spread-btn-12.png’, ”, ‘attachment’, ‘open’, ‘open’, ”, ‘firefox-spread-
   btn-12png’, ”, ”, ‘2006-10-31 13:40:03’, ‘2006-10-31 06:40:03′, ’12’, ‘0’, ‘image/
   png’, ‘[http://server.primacom.intranet/wp-content/uploads/2006/10/firefox-spread-btn-12.png&#8217](http://server.primacom.intranet/wp-content/uploads/2006/10/firefox-spread-btn-12.png&#8217);)
 * WordPress database error: [You have an error in your SQL syntax; check the manual
   that corresponds to your MySQL server version for the right syntax to use near”
   at line 3]
    SELECT category_id FROM wp_post2cat WHERE post_id =
 * WordPress database error: [You have an error in your SQL syntax; check the manual
   that corresponds to your MySQL server version for the right syntax to use near‘
   2)’ at line 2]
    INSERT INTO wp_post2cat (post_id, category_id) VALUES (, 2)
 * WordPress database error: [Out of range value adjusted for column ‘post_id’ at
   row 1]
    INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES (”,’_wp_attached_file’,’
   F:\web\wordpress/wp-content/uploads/2006/10/firefox-spread-btn-12.png’)
 * WordPress database error: [Out of range value adjusted for column ‘post_id’ at
   row 1]
    INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES (”,’_wp_attachment_metadata’,’
   a:4:{s:5:\”width\”;i:88;s:6:\”height\”;i:31;s:14:\”hwstring_small\”;s:22:\”height
   =\’31\’ width=\’88\’\”;s:4:\”file\”;s:69:\”F:\\web\\wordpress/wp-content/uploads/
   2006/10/firefox-spread-btn-12.png\”;}’)
 * Warning: Cannot modify header information – headers already sent by (output started
   at F:\web\wordpress\wp-includes\wp-db.php:104) in F:\web\wordpress\wp-includes\
   pluggable-functions.php on line 272
 * Note that this is a fresh install (not an upgrade).

Viewing 1 replies (of 1 total)

 *  [spencerp](https://wordpress.org/support/users/spencerp/)
 * (@spencerp)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/error-cannot-upload-file/#post-472915)
 * Maybe one of the threads from this [search result](http://wordpress.org/search/Field+%27post_content_filtered%27+doesn%27t+have+a+default+value?forums=1)
   will help? Good luck!
 * spencerp

Viewing 1 replies (of 1 total)

The topic ‘[ERROR] Cannot upload file’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 1 reply
 * 2 participants
 * Last reply from: [spencerp](https://wordpress.org/support/users/spencerp/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/error-cannot-upload-file/#post-472915)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
