I haven’t worked this way myself, but a possible solution would be:
- Upload all of the assets via FTP / SSH / … to the webserver.
- Import the assets e.g. via Add From Server plugin.
Doing a quick web search, a lot of tutorials (maybe outdated?) still refer to this plugin for this specific task. It’s last update was ~1y ago – but handling of media files shouldn’t have changed that much.
Make sure to test it on a staging/dev site before doing anything on production!
If you have absolute & relative links to the assets, they will continue working. If you reference the attachments by their ID, these will likely not work anymore, as the IDs are going to change.
Related Posts:
- Extend Media Library
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- How to show all available images in WP’s media library when using the Polylang plugin?
- Which filters or actions to use after a media upload and delete?
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to wp_upload_bits() to a sub-folder?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Where do the favicons for Media Files come from
- Is it possible to trigger some JavaScript when Media Popup is opened?
- How to call WP3.5 Media Library manager?
- Password protect some uploaded files, so only logged-in users can view them
- How to protect uploads in multisite if user is not logged in?
- Append button to WordPress Image Details modal
- WP3.5 Media Uploader – how to make it accept multiple images?
- How to disable WordPress Media resize different size version?
- Media library storing files in uploads not folders within in uploads
- Add select field to media uploader that adds a class to the image
- How to host different file formats/types for a media attachment without creating multiple attachments?
- Site icons with alpha channel for self-hosted WordPress blog network
- How do I get allowed Media Library upload file extension list?
- Cannot upload .mp3 file to wordpress media
- Switch between tabs on “Insert Media” dialog
- Restrict WordPress Media Library for a specific user role (users can only see/select own media)
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- move_uploaded_file() not working on wordpress front end
- WordPress Issue : The uploaded file could not be moved to wp-content/uploads/
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- Using wp_enqueue_media() with switch_to_blog() issue
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Media library only shows for admin. Doesn’t show editor or below [closed]
- upload_max_filesize is set to 64 MB already but WordPress is still showing 2 MB
- PHP error when trying to upload .mp3 files via Media Library [closed]
- A link (not in the post) to download a specific PDF file
- How does wordpress handle media files?
- WordPress media upload issue could not insert attachment into the database
- Thumbnail images missing in WP media library
- Open Media Uploader Link in single post or page
- Remove Media File Items From Server That Do Not Exist in Media Library
- Add SWF file to wordpress through custom template
- What if I have a large file on the server that I want the wp library to have?
- Uploaded images result in a file url with full path on disk appended
- Using WP-CLI “wp media import” to sync files to the media library
- Efficient way to move media folder to another folder
- Make inline uploader (plupload) on options page upload to a specific folder
- Images not displaying on site or media library
- Replicate Media Galley Edit view in Add Media View
- Front-End Upload media with category
- How to manually set an attachment in a post?
- Media Library: Remove replace images of selected author
- Adding attachment custom field metadata to TinyMCE tag
- How to upload multiple images using WP rest API to media?
- Media not displaying other users uploads – WordPress 4.9.2
- Organizing the Media Library for Cleanup
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Insert media while posting is not working with new wordpress update
- controlling whether upload is attached to post or not
- How to split my uploaded media into directories?
- wordpress 3.6 media manager cropping timestamp
- Image in binary in the data to WordPress media library
- Saving Media – Which Hook is Fired?
- Set a maximum upload count for users on a specific user role
- add_image_size creating lots of images (of various sizes)
- Media uploader not work properly [closed]
- Retrieving JSON data in ajax request from media uploader
- How to side load an image from a service
- How To install AWS SDK for PHP in wordpress?
- Add fields to the WordPress media uploader
- Change default from “Attachment post URL” to “File URL” in Add Media
- how to use media library [closed]
- Replacing Images in Media Library
- How to upload unknown file type?
- Duplicate Custom Header Functionality into the post edit screen
- Multisite – Images often getting uploaded to the wrong month directory
- wrong media url in wordpress
- Move files from flat upload directory to organised by year / month
- Can’t manipulate media uploads
- Custom media uploader not showing library
- Multi Upload In Theme Options
- Resize existing library images
- tb_show not showing a media upload window . custom plugin
- How can I manage and limit disk usage for each author?
- In the media Rest API, what is “missing_image_sizes”?
- Media Library Won’t Display Any Images
- How can I modify the media upload form fields?
- More Fields & Media Upload
- Better solution for managing media attachments with `wp_editor()`?
- Bug: Deleting file, then uploading same file again places file in an old month folder
- Do custom post type (CPT) attachments/media store the parent post ID?
- Can’t upload format files on media library
- How Do I Change the File Permission For Uploaded Files in WordPress?
- WordPress media has all disappeared on wp-admin but still on the server
- unsharp thumbnails after uploading image
- image not display in media library and thumbnail not display in post
- Moving wp-content folder to public_html
- Using Gravity Forms to upload media into library, then attach to post
- Force relative path in media library for LAN deployment
- Set featured link not showing
- Broken Media Library
- Retroactively change Permalinks for media files after disabling year/month format
- Does WordPress import export tool keeps the file hosted on the old website?