After uploading a video , if the ffmpeg transcoding fails or if any other error occurs...or just cancel the node creation, the row in the table file_managed is still saved , so if after the error , i try to upload again the same file with the same name .. I get the following error:

PDOException : SQLSTATE [ 23000 ] : Integrity constraint violation : 1062 Duplicate entry ' public :/ / videos / original / videotest.avi ' for key ' uri ' : INSERT INTO { file_managed } (uid , filename , uri , filemime , filesize , status , timestamp ) VALUES (: db_insert_placeholder_0 , : db_insert_placeholder_1 , : db_insert_placeholder_2 , : db_insert_placeholder_3 , : db_insert_placeholder_4 , : db_insert_placeholder_5 , : db_insert_placeholder_6 ) ; Array ( [: db_insert_placeholder_0 ] = > 1 [: db_insert_placeholder_1 ] => videotest.avi [: db_insert_placeholder_2 ] = > public :/ / videos / original / videotest.avi [: db_insert_placeholder_3 ] => video / x- msvideo [: db_insert_placeholder_4 ] => 626 903 058 [: db_insert_placeholder_5 ] => 0 [: db_insert_placeholder_6 ] => 1395618264 ) in drupal_write_record () ( line 7194 of C : \ xampp \ htdocs \ mysite \ includes \ common.inc ) .

Comments

Anonymous’s picture

Issue summary: View changes
Anonymous’s picture

Issue summary: View changes
hypertext200’s picture

Status: Active » Closed (cannot reproduce)