Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

File upload path not correct #155

Open
RushabhJoshi opened this issue Jul 24, 2018 · 1 comment
Open

File upload path not correct #155

RushabhJoshi opened this issue Jul 24, 2018 · 1 comment
Labels
inspecting Actively looking into the issue

Comments

@RushabhJoshi
Copy link

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 mlantz added the inspecting Actively looking into the issue label Aug 31, 2018
@mlantz
Copy link
Member

mlantz commented Sep 3, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
inspecting Actively looking into the issue
Projects
None yet
Development

No branches or pull requests

2 participants