Restrict file uploads by extension?
Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size? Bonus question: Can I … Read more
Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size? Bonus question: Can I … Read more
I’m trying to make a script that uploads a file to a specific folder in the wordpress installation. Basically I want to upload … Read more
I want to get the full local filename of an uploaded image so that I can copy it to a new directory and … Read more
I have enabled SVG uploads using this code: add_filter(‘upload_mimes’, function($mimes) { $mimes[‘svg’] = ‘image/svg+xml’; return $mimes; }); However, uploads of SVG files that … Read more
i’m probably breaking a few common sense rules here. is there a way to utilize wordpress’ bake in attachment file handling for an … Read more
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for … Read more
I got this error message when trying to upload EPS-files to my WordPress Media Library: Sorry, this file type is not permitted for … Read more
Im searching for some clue about this behavior? I think it is a PHP memory_limit or WP define(‘WP_MEMORY_LIMIT’, ‘X’) issue? Sometimes images are … Read more
Until now I have used default WordPress directory structure, however since I started using GIT, I plan to setup WordPress as a submodule … Read more
I have function in my plugin that is: add_filter(‘comment_text’, ‘commentimage_comment_text’); function commentimage_comment_text($comment=””) { $options = get_option(‘commentimage’); $id = get_comment_ID(); $images = $options[‘images’]; if … Read more