Skip to content

Commit

Permalink
Fix file not found when creating model; fixes #60
Browse files Browse the repository at this point in the history
  • Loading branch information
amma35 authored and cedric-anne committed Jun 4, 2018
1 parent 78b93c3 commit 7a9fd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/model.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ function readUploadedFile($options=array()) {
if (!$webservice) {
//Get and store uploaded file
$original_filename = $_FILES['filename']['name'];
$temporary_uploaded_filename = stripslashes($_FILES["filename"]["tmp_name"]);
$temporary_uploaded_filename = $_FILES["filename"]["tmp_name"];
$unique_filename = tempnam(realpath(PLUGIN_DATAINJECTION_UPLOAD_DIR), "PWS");

if (!move_uploaded_file($temporary_uploaded_filename, $unique_filename)) {
Expand Down

0 comments on commit 7a9fd94

Please sign in to comment.