Hello @iclicknz
Currently is not possible using the plugin settings. Alternatively with our Professional extension you have the ability to save the PDF files on server, and that way you can create a cron job that copies them to S3 somehow.
Hope that helps!
Thread Starter
Famish
(@iclicknz)
Thanks @alexmigf is there any way I can automatically upload the generated invoices to the Media Library?
Cheers
Hi @iclicknz
By Media Library you mean the WordPress uploads
folder?
Thread Starter
Famish
(@iclicknz)
Actually, I was trying to programmatically upload PDF files to the media library
Thread Starter
Famish
(@iclicknz)
I’m using https://deliciousbrains.com/wp-offload-media/ plugin to connect the website to AWS S3. Unfortunately, the plugin only syncs files uploaded to the Media Library
Thread Starter
Famish
(@iclicknz)
Your Professional extension doesn’t seem to do the trick. That’s why I need to find a workaround
Thread Starter
Famish
(@iclicknz)
I’d be happy to pay for customization if you could help. Cheers
Hi @iclicknz
Since you have the Professional extension please contact us to support@wpovernight.com
Thread Starter
Famish
(@iclicknz)
Sorry, I didn’t purchase it. I read the discreption.
@iclicknz
Can you tell me the path for the Media Library?
Hi @iclicknz
Yes, our plugin creates a folder inside that, for example:
/wp-content/uploads/wpo_wcpdf_2a3022997906a2f400a15a6ca965e4aa/attachments/
The Professional extension as a setting to keep the PDF files saved on the attachments folder, then you can copy those with a cron job to another directory.
Hi @iclicknz
Not the attachments directory but the archive
, sorry for the mistake.
Thread Starter
Famish
(@iclicknz)
Thanks! However, even after copying the invoice files using a cron job, the Media Library won’t discover them & update automatically.
Thread Starter
Famish
(@iclicknz)
Is there a way to upload the invoice to the Media Library when they get generated?