We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error 1062 on File uploads

How Do I?

Mike Mella's avatar
Mike Mella
178 posts
10 years ago
Mike Mella's avatar Mike Mella

I just updated my site to v.2.9.2 (from 2.7.1 I believe) and now I can’t upload files to the File Manager. I also (of course) can’t upload using the File fieldtype, either in the control panel publish form or using Channel Forms on the front end. I’m getting this error:

Error Number: 1062

Duplicate entry '1' for key 'site_id'

INSERT INTO `exp_files` (`upload_location_id`, `site_id`, `file_name`, `mime_type`, `rel_path`, `modified_by_member_id`, `uploaded_by_member_id`, `file_size`, `file_hw_original`, `modified_date`, `title`, `upload_date`) VALUES ('1', '1', 'test-image-217.jpg', 'image/jpeg', '/home/myaccount/public_html/recipes/test-image-217.jpg', 3943, 3943, 58839.04, '250 250', 1423348824, 'test-image-217.jpg', 1423348824)

Filename: models/file_model.php

Line Number: 233

Any help?

       
Mike Mella's avatar
Mike Mella
178 posts
10 years ago
Mike Mella's avatar Mike Mella

This issue seems to have been resolved after I ran a repair command on the SQL database, so disregard.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.