I am trying to do something extremely simple.

I just want to save a file, in a custom wordpress upload directory inside of the media library.

But it just won't work.

I've tried the solution here, but it just times out. I get a 110 connection timed out.

I've tried using several functions such as wp_upload_bits, wp_handle_upload, and other ones.

  • 1
    Can you show the code you used?
    – jgraup
    Commented Dec 15, 2015 at 0:25
  • You have to write a function to change the uploads path for temporary change than once the upload is done you should remove it. If you can write a function for the uploads directory. There are some existing similar questions available. Find it for better answer
    – Kvvaradha
    Commented Dec 15, 2015 at 1:02
  • I tried the change uploads directory trick, but for some reason I get a connection timed out. I'm trying a couple of things today but it seems as if I need my own custom function to do this.
    – phpwebdev
    Commented Dec 15, 2015 at 16:17

1 Answer 1


There are many plugins available for media management and file management which will allow you to specify where you want uploaded files to go based on user or other requirements.



There are also upload manager plugins:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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