Simple Upload not so simple.
I tried to find more detailed instructions, but it wasn't apparent to me anywhere I looked on the site.
I'm just trying to upload a file to the same server the web page is on.
Nothing happens after I submit. I just end up on the next page.
The folder CSV is on the server. I did a chmod(777) - all rights are available.
<?php require_once("../WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if($_SERVER["REQUEST_METHOD"] == "POST"){
WA_DFP_UploadFile("WA_UploadResult1", "FileToUpload2", "", "../Discogs/CSV/", "discogs.csv", "3", "[FileName]_[Increment]", "0", "false", "0", "0");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Upload a CSV</title>
</head>
<body>
<form action="DiscogDate.php" method="post" enctype="multipart/form-data" name="uploadcsv">
<label>Discogs .CSV File
<input type="file" name="FileToUpload2" id="FileToUpload" />
</label>
<BR /><BR />
<label>
<input type="submit" name="Submit" id="Submit" value="Submit" />
Submit</label>
</form>
</body>
</html>