FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Big problem with File-Uploads
#1
Hi!

i have a big problem with the file-uploads - that not work :-( I've read the manuals and many post here on the forum, but i can't solved it...

I have a Multi-Form (API), on two pages i have upload-fields.

1. "file_data" => $_FILES = is setting on (on the api-commands)
2. enctype="multipart/form-data" = is setting on (on the <form>-tags)
3. The upload-directory permissions are ok (777)
4. The php-configuration is also ok ("upload_max_filesize"="32MB" and the "upload_tmp_dir" is accesible to me and there permissions are ok too (777))
5. when i click on "send", the files seems to be uploaded (that takes a while)

but...

1. after submission, the files will not be saved in the upload-folder
2. "Settings -> Files -> Upload folder path -> Test Folder Permissions" give me a red bar back
2. "Settings -> Files -> Upload folder URL -> Confirm Folder URL-Match" says: "In order to run this test, the permissions need to be set on the upload folder to allow for reading and writing files (777 on Unix)." (this is bullshit, the permissions are ok !!!)
4. when i try to upload a file by editing the submission, i get the message: "Your submission was updated, but the following file(s) had problems:
• banner.gif: The file could not be uploaded." (banner.gif is a example for the filename)

Any Ideas? I would be grateful for any advice!
Thank you very much!

Greetings!
Reply
#2
Hi jpsaez,

Sorry you're having trouble! This is definitely the source of the problem:

Quote:2. "Settings -> Files -> Upload folder path -> Test Folder Permissions" give me a red bar back
2. "Settings -> Files -> Upload folder URL -> Confirm Folder URL-Match" says: "In order to run this test, the permissions need to be set on the upload folder to allow for reading and writing files (777 on Unix)." (this is bullshit, the permissions are ok !!!)

If you don't get a blue bar on that page saying the permissions are okay on the upload folder path, then regardless of the cause, Form Tools won't be able to upload files for you.

If you're confident that the folder has 777 permissions, then almost certainly it's a path issue: i.e. the value you entered for the path is incorrect.

Paths can be tricky on some servers. Are you on Windows or Unix?

You might want to send a screenshot of the path (with the value you entered) to your hosting providers. They'd probably be able to see if the path is invalid or not.

Good luck...!

- Ben
Reply
#3
Hi Ben,

Thanks for you answer.

(Jan 4th, 2011, 6:19 PM)Ben Wrote: ...

If you're confident that the folder has 777 permissions, then almost certainly it's a path issue: i.e. the value you entered for the path is incorrect.

Paths can be tricky on some servers. Are you on Windows or Unix?

yes, i'm sure, the permissions and the paths are ok. I'm on linux, the absolute path is "/home/5390/docs/formtools2/upload/" and the URL is "http://www.tgk.de/formtools2/upload/" (i've tried it with and without the end "/")

You can show it here:
http://www.tgk.de/formtools2/upload/showit.php

That's the code for "showit.php":

Code:
<?php
$dirPath = dirname(__FILE__);
echo $dirPath;
?>

You have any Ideas?

Thanks a lot!

[EDIT]: Another PHP-Upload Tools, i.e. http://www.element-it.com/multiple-file-...oader.aspx works properly...
Reply
#4
Heya,

Thanks for the edit comment -that's very good to know. So it's clearly not a PHP config issue...

Frankly, I don't know what it could be! I think I'll need to debug this directly on your site. Any chance I could get temporary FTP access & access to your Form Tools admin section? If so, email me at ben.keen@gmail.com. If not, let me know.

- Ben
Reply
#5
Hi Ben,

Thanks a lot for you help. Unfortunately, i can't provide you FTP-Access to our Server - but i really thank you for your offer. When i can solve this problem (no, "if" i can solve it :-)) i'll let know it, you guys...
Reply
#6
Hello.

I had the same problem. Turns out I forgot to add the
Code:
enctype="multipart/form-data"
into the form.

So Try this,

Code:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" enctype="multipart/form-data" method="POST" />
Reply
#7
(Jan 19th, 2011, 3:09 PM)leblanc Wrote: Hello.

I had the same problem. Turns out I forgot to add the
Code:
enctype="multipart/form-data"
into the form.

So Try this,

Code:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" enctype="multipart/form-data" method="POST" />

Thank you, LeBlanc! I had a form with a graphic file upload that was working perfectly for a long while. I recently edited it and somehow broke it...couldn't for the life of me figure out how. Turns out I had removed the exact thing you pointed out. Added it and it works fine again...thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)