How to validate geojson files in laravel ?? #33966
Unanswered
subhadipghorui
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to upload geojson files into my app. I can not validate geojson files in laravel 7. I used this code.
$this->validate($request, [ 'name' => 'required|max:255|unique:layers', 'workspace' => 'required|max:1', 'type' => 'required', 'layer-file' => 'required|file|mimes:zip,kml|mimetypes:application/geo+json', 'about' => 'sometimes|max:1000', 'type' => 'required', 'published' => 'required', ]);
Beta Was this translation helpful? Give feedback.
All reactions