Fixed local uploading
Added local upload dir creation