Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm having problems with the WP uploader (hosting issue); WP is pooping out after uploading files that are relatively large (> 32MB).

My idea was to upload the video file via SFTP to the server and then try to get WP to insert it into the Media Library. How do I do this?

I know that it isn't as simple as just putting it into wp-content/uploads/<date-path>/ because there is some meta-data to add to the back-end DB.

I've seen some posts for media_sideload_image but looking at the code, it looks like this is specifically for images. I looked at media_handle_sideload but I'm not sure how it works or how to create a solution to insert this file where it needs to go. For example, the comments say:

@param array $file_array Array similar to a {@link $_FILES} upload array

What does {@link $_FILES} upload array mean?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Add From Server will do this for you

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.