Unable to upload media files: Maximum upload file size: 0 B [closed]
Check folder permissions for wp-content/upload. It should be set to 755 or 775.
Check folder permissions for wp-content/upload. It should be set to 755 or 775.
Approaching this from the SQL is a mistake, and instead a quick search of the official dev docs for filename reveals a filter named wp_allow_query_attachment_by_filename that is set to true by default: https://developer.wordpress.org/reference/hooks/wp_allow_query_attachment_by_filename/ apply_filters( ‘wp_allow_query_attachment_by_filename’, bool $allow_query_attachment_by_filename ) Filters whether an attachment query should include filenames or not. This means you can disable querying filenames … Read more
What you need is a way to scan your uploads directory and register any unregistered files. There are plugins that can help with this. One such plugin is “Add From Server“. This allows you to import media and files into the WordPress uploads manager from the server’s file system. Using this plugin, you can import … Read more
How to make Media Library files private?
Is there any halfway decent documentation on the wp.media JS class?
Editing alt text in media library
in classic editor, is there a way to add media lib files to the content search when creating a link?
We have the fallback_intermediate_image_sizes filter within wp_generate_attachment_metadata(): ** * Filters the image sizes generated for non-image mime types. * * @since 4.7.0 * * @param string[] $fallback_sizes An array of image size names. * @param array $metadata Current attachment metadata. */ $fallback_sizes = apply_filters( ‘fallback_intermediate_image_sizes’, $fallback_sizes, $metadata ); where the default sizes are: $fallback_sizes = … Read more
You should use media_handle_sideload. Write your file out to the filesystem then use media_handle_sideload to process it in the same way any other upload is processed. Be sure to cleanup afterwards. See: https://developer.wordpress.org/reference/functions/media_handle_sideload/#comment-983 for an example
Using autocomplete with post_tag taxonomy on attachments