Code Monkey home page Code Monkey logo

Comments (4)

classic-o avatar classic-o commented on June 9, 2024

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.

YamShadow avatar YamShadow commented on June 9, 2024

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.

classic-o avatar classic-o commented on June 9, 2024

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.

YamShadow avatar YamShadow commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.