2025 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Contributed a free file of the month
+8 more
revaxarts says

I’m loading a zip file from a third party server, unzip it, do some stuff with the content and delete the zip file afterwards.

Where’s the best place to save that zip file? Is there a “temp” directory in WordPress for this purpose?

2445 posts
  • Has referred 100+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
digitalimpact says

Why not simply wp_upload_dir? It’s already there for you, no need to complicate things, right? :)

2025 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Contributed a free file of the month
+8 more
revaxarts says

Perfect! hope this directory is always writable :)

2445 posts
  • Has referred 100+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
digitalimpact says

It’s WordPress’ upload directory, so it should be :)

by
by
by
by
by
by