I suppose, you didn’t create table imageupload or can’t create folder if_images at your plugin folder.
As a proposal I suggest you to use built-in WordPress functions and wordpress tables or create table on plugin activation.
To create new table use function dbDelta.
If you want to upload user files, use well-documented wp_handle_upload function.
For example:
$uploadedfile = $_FILES['file'];
$upload_overrides = array( 'test_form' => false );
$movefile = wp_handle_upload( $uploadedfile, $upload_overrides );
More here
To create new row in you database, use $wpdb class.
Related Posts:
- how does wp.media javascript library work?
- Redirect to another page using contact form 7? [closed]
- How to upload large media file in chunks, without any plugin?
- How to copy the all WordPress media items to another custom plugin folder?
- Way to force media uploader use custom image size
- What is the correct way to check if WP_Filesystem can write to a directory without aking for username / password?
- How can I add a custom meta value on file upload?
- Deleting images through upload folder, but not deleting from media library
- Getting media library popup in custom plugin admin page
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Is it possible to personalize the Media Library?
- Changing image URLs in media library
- Upload file inside plugins options page
- Adding Attachment Display Settings in custom media frame
- How organize uploaded media in WP?
- How to find the origin of a file upload from within wp_handle_upload?
- wp.media javascript issue with on select
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Plugin Not Working After Being Uploaded To WordPress Plugin Repository
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- adding a button to the media uploader
- custom uploader in the admin area
- Allowing .rfa Files In Media Upload [duplicate]
- download button for audio file in post [closed]
- How programatically cause uploads folder to be created?
- Issue with wp_handle_upload
- How To Create A File Archive in WordPress?
- WordPress not showing manually uploaded files in Uploads folder on Media Library
- Admin Custom Plugin List Files in admin Table
- Access remote SFTP server via WordPress login?
- Is it possible to pull all featured images from WP database only?
- what functions to use to resize images and create DB metadata for them after/during upload?
- Multiple image selection custom widget
- 500 Internal server error wp_handle_upload_prefilter
- Uploading images to custom table
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- WordPress Media Uploader : How to add custom button on featured image tab
- WP_Filesystem usage within a block of code
- Plugin hook breaks new WP 4.0 media library grid view?
- How can I use multi Media Uploader in a plugin?
- Upload Image to desired directory through plugin
- wp_handle_upload – specified file failed upload test
- Ajax response from Media Selection does not update ALL information more than once
- how to create child WordPress plugin
- How do I email a new page password to somebody every month?
- How can I attach images to a post from the media library?
- How to test a WordPress plugin through the upgrade automatically feature
- Failed to invoke other hook from the init hook
- Why is my ajax call refreshing the page?
- Is there an equivalent to Drupal’s Batch API in WordPress?
- wp_enqueue_script fails to include in footer
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Is there any way to get all the name or slug of template parts used in a page?
- First WordPress Plugin – Stat Issues
- Updating the Drag-To-Share eXtended share URLs?
- Send Custom welcome email to specific user group
- WordPress.org Plugin Directory doesn’t recognise screenshots [closed]
- How to check current user before all actions and filters?
- Customised plugin failed to install and activate
- Why is one phpunit test throwing an error on one class when all other classes are similar without error?
- WPDB: Update table
- How to get all posts belongs to a user between a certain date
- Check filter defined or not?
- wp-load.php redeclares classes
- License validate function
- wp_enqueue_style on template_redirect level?
- Symlink a plugin in local development, works but got Debug error message – Windows 10
- Display my plugins content based on a pages post_id
- Make get_permalink() work outside the Loop using filters
- Custom Post Type template for homepage
- Pluging with content for a specific page or post
- Does WordPress do any internal caching if no plugin installed?
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- How can i export and import my plugin option WordPress
- Upload Image with a file URL and show dynamically on Frontend
- Why won’t wp_enqueue_script work within any plugin file?
- Help to Create a Simple Plugin to make a post
- How can i solve php upgrade problem
- How to Upload images to a custom folder in upload folder using media uploader
- how override a define
- WordPress plugin blog creation
- Preserving existing functionality converting HTML to WordPress
- add tags to wordpress post using REST API
- how to do Thematic like this website using wordpress?
- How can I call functions from a custom plugin?
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Am I correctly adding styles to plugin?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- how to create table during plugin installation in side a class
- Why function hooked using object are executing at all time?
- include plugin folder directly in theme folder to load faster page n wp
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Update Content for a Custom Block Toolbar Button
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Submitting form to admin-post.php WordPress
- WordPress Throwing Deprecated Errors on its own Files
- Need to add custom cart item data