Posts: 15
Threads: 6
Joined: Mar 2009
Reputation:
0
i just have to comment on the absolute beauty of this new release. it is [filled] with features and programmability!
regarding the file upload; however, i'm having a bit of trouble.
i setup a multiple page form [4pgs] with pgs 3 having a file upload field w/ .js that populates divs with up to 5 files. after reading through the documentation, i implemented a 'code' initialization and my files are not uploading. pg 3 with the autoGenerated divs, formTools did not even pick up the name or id of that div, neither did it upload the file. on pg 4 i have a single upload field without any <script> and formTools did identify that $key but did not upload the file nor capture the $value of the upload...
what am i doing wrong? do i need to write separate code to manually upload the files on forms 3 + 4...?
thx!
miz
Posts: 15
Threads: 6
Joined: Mar 2009
Reputation:
0
i still haven't been able to upload any files through the 'code' part of initializing a form. when i do the 'direct' initialization of a form, the only upload i get is the file page upload.
On the first version of formtools, i was able to upload files from form 3 + 4; however, that script no longer works with the upgrade.
Anyone else having file upload problems...? or is it just me? I suppose i have no other choice than to revert back to the old version of formTools. thanks.
miz.
Posts: 8
Threads: 1
Joined: Aug 2009
Reputation:
0
I just created one form with two file upload fields but when i submit everything comes through but the uploaded files.
I checked the formtools upload folder and nothing is there. what is the correct procedure to get the files to upload to the server in the upload folder?
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Stech,
If ever you have problems uploading files through your form, try to upload them through the Form Tools admin panel instead - just for testing purposes. Create a dud submission and try uploading the same file.
This can really help in identifying what's the problem. Within the admin panel, it'll provide helpful error message like "unsupported file format", "file too large" or "invalid file upload folder" which can give you some clues on how to debug it.
Let me know how it goes!
- Ben
Posts: 4
Threads: 0
Joined: Nov 2009
Reputation:
0
Hello,
In my form i have one file for upload. But no file will be uploaded. Only the path will be shown in mysql Database (like : C:\Dokumente und Einstellungen\Oliver\Eigene Dateien\Dive-Coop_web\SKOT.jpg). No uploaded file.
If i leave the file tag in form empty and post it to Database, and make the upload of the file in the Formtool administartion area everything works correctly. Then we have an uploaded file and a correct therm (SKOT.jpg)
Here ist my code in Form Tag:
<form action="http://www.dive-cooperation.de/form_tools/process.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="form_tools_form_id" value="22" />
<input type="file" name="Bilddatei">
<input type="submit" value="submit">
</form>
Please can you help me ? What have i done wrong ?
Many thanks to all from - black forrest - Germany
Oliver
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hello from Vancouver, BC!
First off, how do things look from within Form Tools? Have you checked permissions on the upload folder & confirmed the URL+path matches? (These are both found out by clicking the appropriate option on the Settings -> Files page, or on the individual Edit Field page, if you've overridden the default settings). That would be the first place to check.
Secondly, if that looks okay, try uploading a file via the Form Tools interface, for any submission. Does that work? I suspect it won't... from what you described, it sounds like maybe it's a server configuration issue, but let me know about the above and we'll proceed.
- Ben
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Oliver,
In that case it's a problem with your form. Mind posting your form source code so we could take a look?
- Ben
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi Oliver,
Ah, I think it's a markup problem. The opening <form> tag doesn't contain the enctype="multipart/form-data" atttribute, then there's another opening tag further down the page (which I think is supposed to be a </form> closing tag). Then the submit tag isn't closed properly and has another form tag embedded within it.
Once all that stuff is fixed, the file upload should probably work.
- Ben