2030 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 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?

2457 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+3 more
digitalimpact says

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

2030 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Provided great feedback to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+9 more
revaxarts says

Perfect! hope this directory is always writable :)

2457 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+3 more
digitalimpact says

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

by
by
by
by
by
by