Permalink
Browse files

Added exports folder check and creation

  • Loading branch information...
1 parent c33786e commit 42e274af38cbaf4cc7df9acd0a56830c051c6247 @skidding committed Feb 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 upload.php
View
@@ -19,6 +19,10 @@
// Path
+if(!is_dir('exports') && !mkdir('exports'))
+{
+ exit;
+}
$pathinfo = pathinfo
(
$path = 'exports/' . time() . '.jpg'

0 comments on commit 42e274a

Please sign in to comment.