# Can't upload to media library

**URL:** <https://community.kinsta.com/t/cant-upload-to-media-library/751>\
**Category:** Application Support\
**Created:** [June 8, 2021, 9:11am UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751 "2021-06-08T09:11:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dexter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dexter/32/499_2.png) [@dexter](https://community.kinsta.com/u/dexter)\
**Post date:** [June 8, 2021, 9:11am UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/1 "2021-06-08T09:11:59Z")

</div>

Hello,

I’m running DevKinsta on Kubuntu 21.04.

I had some issues before but they had all been fixed and the application has been working flawlessly up until now.

When I try uploading media on my localhost it states: **“filename.png” has failed to upload.**  
The uploaded file could not be moved to wp-content/uploads/2021/06.

The directory of the localhost should have all necessary permissions.

I first noticed the issue yesterday.

Any ideas?  
Regards,

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [June 8, 2021, 4:18pm UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/2 "2021-06-08T16:18:17Z")

</div>

Hi @dexter . Is the directory `wp-content/uploads/2021/06` created? Perhaps the new month directory is having permission issues? Has uploading period any other time this month?

---

<div class="post-metadata">

**Author:** ![dexter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dexter/32/499_2.png) [@dexter](https://community.kinsta.com/u/dexter)\
**Post date:** [June 10, 2021, 8:41am UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/3 "2021-06-10T08:41:27Z")

</div>

Hello @michael.

Yes, i thought this was the issue aswell but i’ve checked and the directory is there along with months 1 through 6.

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [June 10, 2021, 4:14pm UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/4 "2021-06-10T16:14:32Z")

</div>

@dexter Has this started only with the directory 06? The only thing I can think of is permissions for the directory 😕 . Could you try resetting them again?

---

<div class="post-metadata">

**Author:** ![dexter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dexter/32/499_2.png) [@dexter](https://community.kinsta.com/u/dexter)\
**Post date:** [June 14, 2021, 9:58am UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/5 "2021-06-14T09:58:06Z")

</div>

Hi again @michael!

Yes, I suspect it was a problem with the 06 directory as the problem occurred first in June but I could be wrong…

Now, I don’t know what fixed the issue but it’s working as intended. Last I tempered with it was that I changed the permissions of the directory to root and then back to user. I did this last week and it did not fix the issue then, but now as of Monday, it’s working.

Very strange… Wish I could give the forum a definitive fix for this but I’m not quite sure myself.

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 29, 2021, 2:24pm UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/6 "2021-10-29T14:24:48Z")

</div>

We haven’t heard back from you on this topic in a while. However, if you do need further assistance you can simply start a new forum thread. Thank you again for using DevKinsta. Let us know if you need further assistance! 👋

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [October 29, 2021, 2:24pm UTC](https://community.kinsta.com/t/cant-upload-to-media-library/751/7 "2021-10-29T14:24:50Z")

</div>


