GrafiteInc / CMS

Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
https://cms.grafite.ca
MIT License
495 stars 104 forks source link

Cannot upload files / image - "The location field is required" #160

Closed shabaz-ejaz closed 6 years ago

shabaz-ejaz commented 6 years ago

Describe the bug I cannot add files and images through the backend of the CMS. I keep getting the error:

The location field is required.

To Reproduce Steps to reproduce the behavior:

  1. Go to files
  2. Click on add new
  3. Choose an image
  4. See the error

Expected behavior Should upload the file / image

Screenshots If applicable, add screenshots to help explain your problem. 2018-08-30_09h23_05

Desktop (please complete the following information):

Additional context

mlantz commented 6 years ago

I'll have to review on a Windows device this weekend

shabaz-ejaz commented 6 years ago

Any updates on this?

mlantz commented 6 years ago

Please update to the latest release and let me know if this is still an issue

shabaz-ejaz commented 6 years ago

Updated to the latest release (v3.1.7) and the issue is still there:
2018-09-04_09h19_44

mlantz commented 6 years ago

Can you please provide me with the console errors or statements. I'm unable to replicate this

shabaz-ejaz commented 6 years ago

I get the following error that appears for a split second when I click save and then it disappears:

2018-09-04_13h42_18

Other than that there are no console errors.

mlantz commented 6 years ago

Hmmm, looks like an issue with the url being set to admin, it has to be set to cms its a fixed url since its handling the uploads. I'll look into resolving that.

shabaz-ejaz commented 6 years ago

Yeah the cms config allows you to change the backend prefix, so I'm guessing it's pulling from that.

mlantz commented 6 years ago

I'm pushing the fix this evening, you will have to get the latest cms vendor view files if your app has published these to the resources\vendor\cms directory

shabaz-ejaz commented 6 years ago

Thanks. Seems to be working fine after updating and publishing the vendor files.