<?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>MachForm Community Forums Topic: Changing DATA_DIR and UPLOAD_DIR</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Changing DATA_DIR and UPLOAD_DIR</description>
<language>en</language>
<pubDate>Thu, 18 Jun 2026 08:57:57 +0000</pubDate>

<item>
<title>yuniar on "Changing DATA_DIR and UPLOAD_DIR"</title>
<link>https://www.machform.com/forums/topic/changing-data_dir-and-upload_dir#post-9499</link>
<pubDate>Tue, 18 May 2010 15:30:23 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">9499@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;octochops -- can you let us know the URL to the form which having the problem?&#60;br /&#62;
You can post it here or send it via email.
&#60;/p&#62;</description>
</item>
<item>
<title>octochops on "Changing DATA_DIR and UPLOAD_DIR"</title>
<link>https://www.machform.com/forums/topic/changing-data_dir-and-upload_dir#post-9488</link>
<pubDate>Tue, 18 May 2010 04:24:59 +0000</pubDate>
<dc:creator>octochops</dc:creator>
<guid isPermaLink="false">9488@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am also having this issue however it is only happening for (1) of my forms. I have another with an upload field and that one works fine.
&#60;/p&#62;</description>
</item>
<item>
<title>philipwareham on "Changing DATA_DIR and UPLOAD_DIR"</title>
<link>https://www.machform.com/forums/topic/changing-data_dir-and-upload_dir#post-7229</link>
<pubDate>Mon, 07 Sep 2009 18:08:54 +0000</pubDate>
<dc:creator>philipwareham</dc:creator>
<guid isPermaLink="false">7229@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi again,&#60;br /&#62;
I found the problem, the post-functions.php was still the one from v2.1, must of missed it when upgrading, now uploaded the latest version of it and it works fine.&#60;br /&#62;
Thanks,&#60;br /&#62;
Phil
&#60;/p&#62;</description>
</item>
<item>
<title>philipwareham on "Changing DATA_DIR and UPLOAD_DIR"</title>
<link>https://www.machform.com/forums/topic/changing-data_dir-and-upload_dir#post-7228</link>
<pubDate>Mon, 07 Sep 2009 17:23:33 +0000</pubDate>
<dc:creator>philipwareham</dc:creator>
<guid isPermaLink="false">7228@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello yuniar,&#60;br /&#62;
Yes I'm using the advanced form code embed, and also v2.2 of MachForm (though I had customised the helper-functions.php a bit (so the email template matched my site more closely) so maybe I copied the bug over from my previous installation of v2.1?)&#60;br /&#62;
Can you let me know the scripts and line number(s) the download path fix was made in and I'll check my scripts here for inconsistency.&#60;br /&#62;
Thanks,&#60;br /&#62;
Phil
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Changing DATA_DIR and UPLOAD_DIR"</title>
<link>https://www.machform.com/forums/topic/changing-data_dir-and-upload_dir#post-7219</link>
<pubDate>Sun, 06 Sep 2009 10:19:30 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7219@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi philip,&#60;/p&#62;
&#60;p&#62;Are you using the advanced form code to embed your form?&#60;br /&#62;
Also, what is your machform version? check your changelog.txt file at the bottom, you'll see your current version there.&#60;/p&#62;
&#60;p&#62;If you are using version older that 2.2, there was some small bug with the download path indeed.&#60;br /&#62;
Please contact us directly and we'll assist you there.
&#60;/p&#62;</description>
</item>
<item>
<title>philipwareham on "Changing DATA_DIR and UPLOAD_DIR"</title>
<link>https://www.machform.com/forums/topic/changing-data_dir-and-upload_dir#post-7205</link>
<pubDate>Fri, 04 Sep 2009 16:15:32 +0000</pubDate>
<dc:creator>philipwareham</dc:creator>
<guid isPermaLink="false">7205@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi there,&#60;br /&#62;
I'm having some problems with uploaded files with MachForm as follows..&#60;/p&#62;
&#60;p&#62;I have all the machform files installed in a directory labelled 'machform', and my form is called using the php embed method from a page within a directory labelled 'scotts'. The data folder is fully writeable and is still within the 'machform' directory as per the default installation.&#60;/p&#62;
&#60;p&#62;When someone uploads a file using the form, it is uploaded absolutely fine into the directory machform/data/form_1/files/ and I can grab it fine via FTP - the problem is that on the automated email response, when I click the link in that email I get a 404 error.&#60;/p&#62;
&#60;p&#62;Looking at the URL is seems to be looking in the 'scotts' directory for the files, for example...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.mysite.com/scotts/download.php?q=Zm9ybV9pZD0xJmlkPTYwNDIwJmVsPWVsZW1lbnRfMTQ=&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/scotts/download.php?q=Zm9ybV9pZD0xJmlkPTYwNDIwJmVsPWVsZW1lbnRfMTQ=&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Surely it should be linking to within the 'machform' directory not the 'scotts' directory?&#60;/p&#62;
&#60;p&#62;Should I change the paths in config file (currently set as 'DATA_DIR', './data' and 'UPLOAD_DIR', './data') to absolute paths to sort this out?&#60;/p&#62;
&#60;p&#62;Thanks, sorry for the long post!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
