Showing added mime types in REST media response
Showing added mime types in REST media response
Showing added mime types in REST media response
TwentySeventeen $content_width not updated in admin
Go into your document root, then locate your media folder (default wp-include/media) and raw files (jpgs etc) should be there. If not, check your trash bin, if not, your hosting provider is your last resort. Edit: after this, download all your files as backup into your local machine, including media and settings etc and reinstall … Read more
I’ve found that in Settings > Media > Files upload > Save files uploaded in this folder: there’s a URL that is not the default (wp-content/uploads). Check this if it can help.
I suggest you to make updates on your web-server instead of WordPress. You can set mime type for mp4 files to application/octet-stream. Using .htaccess (Apache): AddType application/octet-stream .mp4 For nginx check documentation If you need to change mp4 mime type on upload, you can use this hook: add_filter(‘upload_mimes’, ‘wpse_320375_remove_mime_types’); function wpse_320375_remove_mime_types($mimes){ $mimes[‘mp4’] = ‘application/octet-stream’; }
Replace all links before the installation of the SSL (you can update the links via SQL) How to mass update links Your wordpress should throw out https:// links now after the installation of the SSL certificate. This problem is due to wordpress decision to insert full links when inserting media through the editor.
I found what I wanted: https://github.com/humanmade/network-media-library Its works with the current release of WordPress(5.1) at the time of this post, but is not found in WordPress official plugin list. Alternative plugins with similar functionality at listed at the bottom of that page.
What I did was to get media folder and save there the cropped image. After that update meta data: $imageToCropPath= get_attached_file($attachmentId); // Get file path to the image that will be cropped $img = imageCreateFromJpeg($imageToCropPath); $croppedImage = imagecrop($img, [‘x’ => $cropX, ‘y’ => $cropY, ‘width’ => $cropWidth, ‘height’ => $cropHeight]); $uniqueId = md5(uniqid()); // Create … Read more
As it turned out it was being created somewhere else and I found it by doing a search and replace.
Only checking if the cookie exists, is not much of a strict protection. To get a stronger protection, you can pass or “proxy” all requests to the uploaded folder (exemplary uploads in the following example) through a php script: RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L] All requests to uploaded files (which includes images in … Read more