Simple Upload Not Working...please help
Hello everyone,
I am hoping that someone can offer some help. I want to create a page where customers can upload a picture to a directory on my server. I have been trying to create a simple test page just to see if the upload works and it doesn't.
I created the file field and the submit button and used Digital File Pro to take care of all of the restrictions, etc. I've tested it both locally and on my web server. The file will not upload. In fact, I don't even think the file information is being sent to the HelperPHP file. I am able to browse for the file I want to upload and the info is filled into the file field. However, when I press submit, it seems to do nothing more than reset the form. My test page reloads with a blank file field, and the "uploaded" file is no where to be found.
I followed the simple file upload instructions that came with DFP. I set max file size and I have it set to only accept web images. I tried uploading text files to see if I would get the proper error messages but nothing happens. I even placed echo statements in the code to print out the values of all the variables. When I press submit, the file field goes blank, the values of all the restrictions I chose appear but the value of $uploadedFile comes out completely blank. I can only assume the uploaded file information is not even making it to the HelperPHP file.
Is there something simple that I am missing? Are there any known bugs with DFP? I just want to create a blank test page with nothing more than a file field and submit button to upload a file. There's not much documentation that comes with DFP so I have absolutely no where else to turn.
I know there is simple php code out there for uploading a file...I've tried it, and it works. But I need the restrictions that DFP can put on file type and size, and the error messages that come along with them. But most of all DFP costs $$$ and I would like it to actually work!
Thanks to anyone who takes the time to read this.