Comments (4)
Hi. Can You show me config file?
And judging by the text of the error - this is an error in the laravel, not in my plugin.
May be you removed link to storage or change permission to storage folder?
from nova-media-library.
Hi, Thank you for your reply.
Here is my configuration file
return [
/**
* Here you may specify the default filesystem disk.
* Available `public` or `s3`.
*
* @var string
* @since 0.2.0
*/
'disk' => 's3' == env('FILESYSTEM_DRIVER') ? 's3' : 'public',
/**
* Will use to return base url of media file.
*
* @var string
* @since 0.2.0
*/
'url' => 's3' == env('FILESYSTEM_DRIVER') ? env('AWS_URL', '') : '/storage',
/**
* Save all files in a separate folder.
*
* @example `media-library`
*
* @var string
* @since 0.1.0
*/
'folder' => 'media',
/**
* Organize uploads into date based folders.
* Available date characters: `Y`, `m`, `d` and symbols: `-`, `_`, `/`
*
* @example Y-m
* @example Y/m
* @example Y/m-d
*
* @var string|null
* @since 0.2.0
*/
'by_date' => 'Y-m',
/**
* This option allow you to filter your files by types and extensions.
* Format: Label => ['array of extensions'].
*
* @example ['*'] - allow you to save any file extensions to the specified type.
*
* @var array
* @since 0.2.0
*/
'types' => [
'Image' => [ 'jpg', 'jpeg', 'png', 'gif', 'svg' ],
'Docs' => [ 'doc', 'xls', 'docx', 'xlsx', 'pdf' ],
'Audio' => [ 'mp3' ],
'Video' => [ 'mp4' ],
#'Other' => [ '*' ],
],
/**
* Maximum size of file uploads in bytes for each types.
* Add `Label` => `max_size` in bytes for needed types to enable limitation for some types.
* If you want to disable the limitation - leave empty array
*
* @var array
* @since 0.2.0
*/
'max_size' => [
'Image' => 2097152,
],
/**
* The number of files that will be returned with each step.
* The tool loads files from a folder not all at once.
*
* @var integer
* @since 0.1.0
*/
'step' => 40,
/**
* Allow you to resize images by width\height. Using http://image.intervention.io library
* Width and height can be integer or null. If one of them is null - will resize image proportionally
* Supports image formats: http://image.intervention.io/getting_started/formats
*
* @var array
* @since 0.2.0
*/
'resize' => [
'image' => 'Image', # Label from types (Set `null` to disable resizing)
'width' => 1200, # Maximum width in pixels
'height' => null, # Maximum height in pixels
'driver' => 'gd', # `gd` or `imagick` http://image.intervention.io/getting_started/configuration
'quality' => 80, # 0 - 100
'crop' => true, # Cropping image on the frontend
]
];
I tried to add a high number in the 'Docs' field on 'max_size' variable but that did not change anything.
All uploads work, both on my application from Laravel, and from Nova with your module (images, svg and pdf of less than 2mo). The permissions on the storage and the link are as well configured.
from nova-media-library.
Works well on my site http://prntscr.com/p1mvy3
I think problem with your server. Try to debug step by step.
from nova-media-library.
It's works for me.
Beginner error ... My php.ini was bad setup on our new server.
Sorry for the inconvenience.
from nova-media-library.
Related Issues (20)
- Does not implement method 'menu' HOT 1
- Translatable image
- How to get file by name instead id? HOT 2
- How to keep the original file name when uploading files HOT 1
- Migration rollback: Set down() method HOT 1
- Unexpected folders appearing HOT 2
- Resize images HOT 2
- Allow change icon in Nova sidebar HOT 1
- Feature Req: Ability to update media library item HOT 2
- Forbidden file format error on all image uploads HOT 4
- Custom folder based on post HOT 4
- How to save the filename in the model table instead the ID HOT 2
- Folder Permissioning based on Resource Policy - I'll create a PR HOT 1
- Download docs and images when clicked instead of opening in new tab? HOT 1
- Uploading animated gif seems to flatten and use only first frame HOT 3
- Documentation to Display Image HOT 1
- Does not work in Nova 3 HOT 2
- The uploaded file exceeds the maximum size
- Nova 4 support HOT 3
- Use guessExtension instead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-media-library.