Thread:Project:Support desk/Upload local files from extension

Hi everyone,

I am currently developing a little extension for MW, where I create an image with PHP and store it in a temporary subfolder of my extension-folder. How can I then import/upload/whatever the image into MW, such that I can include it with on a page?

I am searching for an answer to this for days, but I found no good documentation of MW's internal upload processes and how to control them from my extension. I did found maintenance/ImportImages.php, but this won't do for me, because all functions to execute scripts on the server (exec, shell_exec, system... ) are disabled for me.

I just would be glad to hear something like: "You must create an object of class X and then execute function Y with parameters Z. And do additional stuff A-F previously or thereafter.". I feel like this should be somehow possible.

Thanks in advance for your help! =)

Greetings, Patrick