[wp-trac] [WordPress Trac] #32318: Upload fails, wp_insert_attachment returned 0

WordPress Trac noreply at wordpress.org
Mon Oct 26 20:22:19 UTC 2015


#32318: Upload fails, wp_insert_attachment returned 0
--------------------------+------------------------------
 Reporter:  programmin    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Upload        |     Version:  4.1.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by programmin):

 If you add a var_dump($data) before that return 0 you will see that on
 files this fails on there's weird metadata like "Genre: ÿþ." Is this a
 misconfiguration of id3 reader you are using?

 At the very least can have an error message that says this file has
 unrecognized metadata and wasn't saved to the database, and remove the
 file from the server since it didn't get added to the media library?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32318#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list