<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Appnitro Software Forums Topic: Problem with file upload.</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: Problem with file upload.</description>
<language>en</language>
<pubDate>Wed, 10 Mar 2010 21:16:51 +0000</pubDate>

<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3722</link>
<pubDate>Tue, 18 Nov 2008 16:57:39 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3722@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;It's a Plesk server with 4PSA Total Domains. With Total Domains you can set varies strings within PHP.&#60;/p&#62;
&#60;p&#62;Anyways I turned off safe_mode for several directories (checked it through PHP info) and removed the files directory, but I still get the errors. It's unable to create the files directory.&#60;/p&#62;
&#60;p&#62;Anyways, I now re-created the directory. put an empty .txt file in it with and changemodded it to 0. Hopefully the directory will stay there this time.&#60;/p&#62;
&#60;p&#62;Though this is not a perfect solution, it should work...
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3716</link>
<pubDate>Tue, 18 Nov 2008 11:05:43 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3716@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Ahh.. I see.&#60;br /&#62;
I suppose the PHP Safe Mode is the problem.&#60;/p&#62;
&#60;p&#62;Try to disable it for your &#34;machform/data&#34; folder.&#60;br /&#62;
If that doesn't work either, try to disable it for your &#34;machform&#34; folder.&#60;/p&#62;
&#60;p&#62;I didn't know that Safe Mode can be disabled per directory though.&#60;br /&#62;
Can you let me know how to do it?
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3710</link>
<pubDate>Mon, 17 Nov 2008 22:06:02 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3710@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Yes the server is running PHP safe mode, but I can disable it for a directory.&#60;br /&#62;
For which directory should I disable it? If that is causing the problem?&#60;/p&#62;
&#60;p&#62;I don't have other problems with Machform at all though...
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3705</link>
<pubDate>Mon, 17 Nov 2008 19:13:23 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3705@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hmm.. is your PHP running under Safe Mode?&#60;/p&#62;
&#60;p&#62;If not, this seems to be permission problem.&#60;br /&#62;
Your web server, doesn't seem to have proper privileges to your &#34;data&#34; folder.&#60;/p&#62;
&#60;p&#62;When you delete selected files, MachForm doesn't remove the directory.&#60;br /&#62;
However, if you click &#34;Delete All Entries&#34; .. MachForm indeed delete the &#34;files&#34; directory and then re-create the directory again.&#60;/p&#62;
&#60;p&#62;If your webserver is having permission problem, it might be unable to re-create the &#34;files&#34; directory.&#60;/p&#62;
&#60;p&#62;In your case, I suggest not to use the &#34;Delete All Entries&#34;.
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3702</link>
<pubDate>Mon, 17 Nov 2008 18:43:03 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3702@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Okay... I think I may have found a bug.&#60;/p&#62;
&#60;p&#62;I created a directory called &#34;files&#34; in the appropiate forms directory.&#60;br /&#62;
And apparatently it works once again.&#60;/p&#62;
&#60;p&#62;And I also know what is causing this and why I had this problem before.&#60;/p&#62;
&#60;p&#62;As soon as you delete a uploaded file through Machform's control panel. It also deletes the directory. And that's what causing the problems...&#60;/p&#62;
&#60;p&#62;Any way to solve this permantly? So it only removes the file and not the directory?
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3701</link>
<pubDate>Mon, 17 Nov 2008 18:33:46 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3701@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Uhmz... The &#34;Data&#34;, &#34;form_xx&#34; and &#34;CSS&#34; folders are all 777.&#60;br /&#62;
But I cannot seem to find the tmp folder at all?&#60;/p&#62;
&#60;p&#62;Where is it supposed to be located?&#60;/p&#62;
&#60;p&#62;Really weird.&#60;/p&#62;
&#60;p&#62;Also, like I said, I had this problem before. When I created the upload form.&#60;/p&#62;
&#60;p&#62;Where should the &#34;tmp&#34; be located? I will try creating several tmp folders myself and see if works then.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3698</link>
<pubDate>Mon, 17 Nov 2008 17:01:44 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3698@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hmm.. is your /tmp folder writable? it should have writable permission (CHMOD 777).&#60;/p&#62;
&#60;p&#62;If it's already writable and the problem persist, I'll need to investigate this directly.&#60;br /&#62;
Can I login to your FTP to check this?&#60;/p&#62;
&#60;p&#62;Mail your FTP details to: customer.service [at] appnitro.com&#60;br /&#62;
or submit here: &#60;a href=&#34;http://www.appnitro.com/support/index.php?pg=request&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/support/index.php?pg=request&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3695</link>
<pubDate>Mon, 17 Nov 2008 16:27:06 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3695@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;It was already a small file, cause I tried it myself.&#60;br /&#62;
And I also changed the limit on file sizes through the server and PHP config file.&#60;/p&#62;
&#60;p&#62;So it shouldn't be a problem.&#60;/p&#62;
&#60;p&#62;I also remembered having the same problem before.&#60;/p&#62;
&#60;p&#62;I already have angry customers because of this...&#60;/p&#62;
&#60;p&#62;:(
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3677</link>
<pubDate>Sat, 15 Nov 2008 13:51:46 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3677@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;This is the causing problem:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Warning: move_uploaded_file(): Unable to move &#38;#39;/tmp/phpurDEMM&#38;#39; to &#38;#39;./data/form_14/files/element_33-7-simpel_voorbeeld.jpg.tmp&#38;#39; in /var/www/vhosts/notpublic.nl/httpsdocs/bestelformulieren/includes/post-functions.php on line 1077&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Your file doesn't seem to be uploaded to the /tmp folder.&#60;br /&#62;
Try to upload smaller file size &#38;lt; 1Mb.&#60;/p&#62;
&#60;p&#62;Let me know how it goes.
&#60;/p&#62;</description>
</item>
<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3666</link>
<pubDate>Fri, 14 Nov 2008 19:32:00 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3666@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Line 1077 in post-functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//for form with review enabled, append .tmp suffix to all uploaded files
//move file and check for invalid file
$destination_file = $input[&#38;#39;machform_data_path&#38;#39;].DATA_DIR.&#38;quot;/form_{$form_id}/files/{$element_name}-{$record_insert_id}-{$_FILES[$element_name][&#38;#39;name&#38;#39;]}.tmp&#38;quot;;
if (move_uploaded_file($_FILES[$element_name][&#38;#39;tmp_name&#38;#39;], $destination_file)) {
$filename = mysql_real_escape_string($_FILES[$element_name][&#38;#39;name&#38;#39;]);
$query = &#38;quot;update ap_form_{$form_id}_review set $element_name=&#38;#39;{$element_name}-{$record_insert_id}-{$filename}&#38;#39; where id=&#38;#39;$record_insert_id&#38;#39;&#38;quot;;
do_query($query);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>MvdL79 on "Problem with file upload."</title>
<link>http://www.appnitro.com/forums/topic/problem-with-file-upload-1#post-3665</link>
<pubDate>Fri, 14 Nov 2008 19:28:31 +0000</pubDate>
<dc:creator>MvdL79</dc:creator>
<guid isPermaLink="false">3665@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;I am getting errors when a customer tries to upload a file.&#60;/p&#62;
&#60;p&#62;Warning: move_uploaded_file(./data/form_14/files/element_33-7-simpel_voorbeeld.jpg.tmp): failed to open stream: No such file or directory in /var/www/vhosts/notpublic.nl/httpsdocs/bestelformulieren/includes/post-functions.php on line 1077&#60;/p&#62;
&#60;p&#62;Warning: move_uploaded_file(): Unable to move '/tmp/phpurDEMM' to './data/form_14/files/element_33-7-simpel_voorbeeld.jpg.tmp' in /var/www/vhosts/notpublic.nl/httpsdocs/bestelformulieren/includes/post-functions.php on line 1077&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/notpublic.nl/httpsdocs/bestelformulieren/includes/post-functions.php:1077) in /var/www/vhosts/notpublic.nl/httpsdocs/bestelformulieren/view.php on line 51
&#60;/p&#62;</description>
</item>

</channel>
</rss>
