Home > Article > CMS Tutorial > How does the WordPress plugin import server files into the media library?
How does the WordPress plugin import server files into the media library?
The Media library manager of WordPress can only select files to upload from the client. Dion Hulse has developed an Add From Server plug-in that supports directly selecting existing files on the server to import into the media library. You can download and install it from Add From Server, or you can install it online in the WP background:
Recommended: "wordpress tutorial"
After successful installation and activation, you can see that there is an Add From Server under the Media menu. You can browse any folder in the site, select the target file, and click Import to import.
Note:
This plug-in only supports WP 2.8.5 or higher version
The import operation of this plug-in does not perform the original file The move or copy operation only adds a record in Media and references the past
If you delete the record of the imported file in Library, the corresponding physical file will not be deleted. Maybe the author assumes that since it is a reference from Import, deletion cannot delete the physical file. But sometimes, we really want to delete the file as well. It would be better if there is an option.
The above is the detailed content of How does the WordPress plugin import server files into the media library?. For more information, please follow other related articles on the PHP Chinese website!