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

File upload path not correct #155

Open RushabhJoshi opened 6 years ago

RushabhJoshi commented 6 years ago

when I tried to upload a file from file module it will store a file in storage/app/files folder maybe it should be in storage/app/public/files folder

also, after this it shows a error

SQLSTATE[42S22]: Column not found: 1054 Unknown column '_url' in 'field list' (SQL: insert into `files` (`location`, `is_published`, `tags`, `details`, `_url`, `name`, `mime`, `size`, `order`, `user`, `updated_at`, `created_at`) values (files//536855d389c1453a4aa34c68204d0e2f.pdf, 1, Resume, , /cms/files, Rushabh Joshi - Resume.pdf, application/pdf, 67220, 0, 1, 2018-07-24 11:26:02, 2018-07-24 11:26:02))
mlantz commented 6 years ago

The only thing I can determine with this error is that the config for the cms.forms.files is adding in the _url field, I cannot locate anywhere else in the latest version that would be causing that.

By default we don't assume you want to share all these files with website scanners which would find data in your public folders potentially.