<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Files Bug?</title>
		<link>http://org.wikidot.com/forum/t-42802/files-bug</link>
		<description>Posts in the discussion thread &quot;Files Bug?&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Thu, 12 Mar 2026 23:24:25 +0000</lastBuildDate>
		
					<item>
				<guid>http://org.wikidot.com/forum/t-42802#post-114592</guid>
				<title>Re: Files Bug?</title>
				<link>http://org.wikidot.com/forum/t-42802/files-bug#post-114592</link>
				<description></description>
				<pubDate>Wed, 27 Feb 2008 12:25:00 +0000</pubDate>
				<wikidot:authorName>Gabrys</wikidot:authorName>				<wikidot:authorUserId>2462</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The IP is only used in one place &#8212; a template showing you information about how to set up a custom domain mapping (i.e. &quot;change your DNS settings to point to IP address: w.x.y.z&quot;).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://org.wikidot.com/forum/t-42802#post-111830</guid>
				<title>Re: Files Bug?</title>
				<link>http://org.wikidot.com/forum/t-42802/files-bug#post-111830</link>
				<description></description>
				<pubDate>Fri, 22 Feb 2008 13:37:08 +0000</pubDate>
								<wikidot:authorUserId>38854</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Gabrys,</p> <p>I just wanted to confirm that your fix for the MIME types worked great.</p> <p>One more off the list!</p> <p>-Ed</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://org.wikidot.com/forum/t-42802#post-111823</guid>
				<title>Re: Files Bug?</title>
				<link>http://org.wikidot.com/forum/t-42802/files-bug#post-111823</link>
				<description></description>
				<pubDate>Fri, 22 Feb 2008 13:12:54 +0000</pubDate>
								<wikidot:authorUserId>38854</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks for the tip on MIME types - I'll give that a try.</p> <p>I do not have custom domains enabled. Here's a part of my GlobalProperties.php file:</p> <div class="code"> <pre><code>/** * Global configuration properties. Please adjust this file to your needs. * */ class GlobalProperties { /** * Name of your service, e.g. &quot;MIT University Wikis&quot;. */ public static $SERVICE_NAME = &quot;The Pizzageek's Wiki&quot;; /** * Domain name. */ public static $URL_DOMAIN = &quot;pizzageek.is-a-geek.com&quot;; /** * URL of documentation site. */ public static $URL_DOCS = &quot;http://www.wikidot.org/doc&quot;; /** * The IP of your server. */ public static $IP_HOST = &quot;192.168.0.108&quot;; /** * Allow (and process) the custom domains for the wikis. Most admins * would like this disabled and keep all the wikis within the * URL_DOMAIN domain. */ public static $USE_CUSTOM_DOMAINS = false; /** * Allow users to configure SSL settings for their wikis. */ public static $USE_SSL = false; /** * Session expiry time (in seconds). After that period the session will be reset and * authorisation will be lost. */ public static $SESSION_TIMEOUT = 3600; // in seconds public static $SESSION_COOKIE_NAME = &quot;WIKIDOT_SESSION_ID&quot;; public static $SESSION_COOKIE_SECURE = false; // by default public static $SESSION_COOKIE_DOMAIN = null; /** * Database settings. For type the valid value is: &quot;pgsql&quot;. */ public static $DATABASE_TYPE = &quot;pgsql&quot;; public static $DATABASE_SERVER = &quot;127.0.0.1&quot;; public static $DATABASE_PORT = &quot;5432&quot;; public static $DATABASE_USE_PERSISTENT_CONNECTIONS = false; public static $DATABASE_USER = 'wd'; public static $DATABASE_PASSWORD = 'wdpass'; public static $DATABASE_NAME='wd1'; /** * Memcached settings. */ public static $USE_MEMCACHE = false; public static $MEMCACHE_HOST = '127.0.0.1'; public static $MEMCACHE_PORT = 11211;</code></pre></div> <br /> Looking closer at the 404 error, you're right, it would look like the link is trying to find the file in the <strong><span style="white-space: pre-wrap;">custom--domains</span></strong> folder rather than the <strong><span style="white-space: pre-wrap;">files--sites</span></strong> folder where they are actually located. The strange part is the files are apparently put in the right place during upload, but get lost when trying to download. <p>Would the fact that I renamed my server to my new DynDNS name (pizzageek.is-a-geek) possibly affect this? All I did was update GlobalProperties.php after making that change. Are there other config files affected by this that I should check? Or possibly, the <span style="white-space: pre-wrap;">&quot;$IP_HOST&quot;</span> setting? I used my internal IP, not my external one - does that make a difference? Should it be localhost (127.0.0.1) perhaps?</p> <p>I may try another wipe/reinstall this weekend to see if that makes a difference.</p> <p>Thanks again. With everyone's help we may get a bug-free install going yet! ;)</p> <p>-Ed</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://org.wikidot.com/forum/t-42802#post-111774</guid>
				<title>Re: Files Bug?</title>
				<link>http://org.wikidot.com/forum/t-42802/files-bug#post-111774</link>
				<description></description>
				<pubDate>Fri, 22 Feb 2008 10:57:08 +0000</pubDate>
				<wikidot:authorName>Gabrys</wikidot:authorName>				<wikidot:authorUserId>2462</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi Ed,</p> <p>I had similar problem with MIME types. I don't exactly what it is caused by, but here is a solution:</p> <p>cp /usr/share/file/magic* /var/www/wikidot/lib/magic/</p> <p>I have no idea what's wrong with the paths, I'll check that now.</p> <p>And I can't reproduce your problem&#8230; Are you sure you're not using custom domains?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://org.wikidot.com/forum/t-42802#post-111661</guid>
				<title>Files Bug?</title>
				<link>http://org.wikidot.com/forum/t-42802/files-bug#post-111661</link>
				<description></description>
				<pubDate>Fri, 22 Feb 2008 03:03:06 +0000</pubDate>
								<wikidot:authorUserId>38854</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Here I go again! ;)</p> <p>It looks like something is amiss with file handling, specifically linking/downloading.</p> <p>I uploaded a variety of files to my test server.</p> <p>Problem #1: all files are identified as &quot;MIPS archive&quot; regardless of the actual file type/extension.<br /> Problem #2: after a successful upload, the file can not be downloaded. The link looks OK when you hover over it, but the actual URL gets changed and it always comes back with a <strong>404 - Not Found</strong> error.<br /> I took some screen shots to show what's happening:</p> <hr /> <blockquote> <p>File Information screen after successfully uploading the file:</p> <ul> <li>Note the URL looks OK, but the file type is wrong.</li> </ul> </blockquote> <img src="http://pizzageek.wikidot.com/local--files/pgfiles/File_Issue_1.jpg" alt="File_Issue_1.jpg" class="image" /> <hr /> <blockquote> <p>Note the status bar shows what appears to be the correct link information while hovering over the file link:</p> </blockquote> <img src="http://pizzageek.wikidot.com/local--files/pgfiles/File_Issue_2.jpg" alt="File_Issue_2.jpg" class="image" /> <hr /> <blockquote> <p>Clicking the link produces this - the path is totally incorrect!</p> </blockquote> <img src="http://pizzageek.wikidot.com/local--files/pgfiles/File_Issue_3.jpg" alt="File_Issue_3.jpg" class="image" /> <hr /> <blockquote> <p>The actual file uploaded is where (I think) it should be on the Wikidot server:</p> </blockquote> <img src="http://pizzageek.wikidot.com/local--files/pgfiles/File_Issue_4.jpg" alt="File_Issue_4.jpg" class="image" /> <p>Any help for this one?<br /> Thanks again!</p> <p>-Ed</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>