Thread:Project:Support desk/Upload local files from extension/reply (4)

I created an extension to do something similar. See the function "pullFile" and I think you'll see what you need.