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.