Javascript required
Skip to content Skip to sidebar Skip to footer

How to Upload a File in Blogspot Root Directory

This commodity explains the issues, and options, for putting a file into the "root directory" of your Blogger web log.

If you are using sure non-Google products to enhance your Blog, they volition sometimes tell yous to put a file into your root-directory.   They may even tell yous to use an FTP  tool to exercise this.

Sometimes this happens when a product also gives you code to install into your weblog , This approach is used when the lawmaking is written for websites in full general rather than specifically to piece of work with Blogger: putting useful files into a place relative to the root directory makes it a lot easier to move a website from a examination-address to the live i, so is a mutual approach exterior of Blogger.

Or peradventure the other tool has been designed to verify that you do ain the website in this mode, rather than asking you lot to modify the website lawmaking itself.

How to add a file to your blog'southward root directory

The short respond for Blogger users is "deplorable, you cannot do this".

The long respond is still no:"there is no way to do this, just see the balance of this commodity for an explanation of why, and some suggested work-arounds."

Why not? Every other website tool lets me do this.

Home - cpg1.5.x demo 1287551599033
Posts:  Blogger'southward tool for managing
the content on our blogs

If y'all're clever, and have lots of time, you can make a website merely using a text-editor (eg notpad), a graphics program, and ftp software that lets yous put the files into the correct places on computer that'southward connected to the internet.

Tools like Dreamweaver take away a lot of the time-consuming work, and some of the need for cleverness.  But you all the same demand to know a lot about the cyberspace to do things in a manner that makes a good website.

Content management systems brand this easier still: they let a technically-minded person exercise the nuts-and-bolts piece of work to make the website, and requite authors / artists / editors / content-creators simpler-to-utilize tools that let them put "stuff" (ie content) into the website, without needing to worry well-nigh the details of how it works.

Blogger is a (very uncomplicated) website content-direction system, it creates our web-pages for us based on information that we put into certain places. Administrators can fix and modify the theme, other people, eg authors only make posts.

When we use Blogger, the master manner that we change the data in our web-pages is using the Blogger software.

Some items inside posts or gadgets can exist changed using other software, eg Google Docs, provided they were were prepare up using that other software in the kickoff identify. But - fundamental point - there is nothing in the way that Blogger is put together that means nosotros demand to access the base directory. So they don't let united states practise so.    And I uncertainty that this this will alter anytime soon.

What to do instead

The options for getting effectually this restriction depend on how the file that you need to put into your root directory is intended to be used.

Installing code

If you have lawmaking to install into your blog, and a file to go with information technology, then yous just need to

  1. Host the file somewhere else (maybe in your Picasa-web-album for the blog, if it's a picture)
  2. Alter the code to point to the full path of where you take hosted the file, instead of the relative path used in the code

For example, hither is the code for a button linking to my blog, with the picture in the root directory:

<div class="separator" style="clear: both; text-align: eye;"> <a href="http://world wide web.Blogger-hints-and-tips.blogspot.com" imageanchor="ane" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="//Logo.png" width="100" /></a></div>

To change this to use a specific location, I but add a file-path and the file-name of the motion-picture show wherever information technology is hosted.

<div grade="separator" style="clear: both; text-align: middle;"> <a href="http://www.Blogger-hints-and-tips.blogspot.com" imageanchor="i" style="margin-left: 1em; margin-right: 1em;"> <img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiSsmkgnebeq5gRs3z1Iis7yvELD8uV0FGdYz7yDb8iAjtcbiqpRcXEBsmjNKKol6DrGOahvAqz0rn9Z-lVFSwXMMKn1l8JDQoF11njDJqlqAGnd6Tb8GMO5qPI82np5xebHwhbiFH4zYy/s320/Logo.png" width="100" /></a></div>

TIP: blogger's editor sometimes gets links mixed upward, so it'south of import to start the filepath with "http://"

Verifying ownership

If someone wants to use a file's position to cheque that you lot control a website, then they volition have code on their own website that looks for the file in your root directory.

You cannot change this code. And you lot cannot place the fie.

So you need to ask them for an alternative way to verify , that is suitable for people without root directory access.

 If they don't have any alternatives, attempt lobbying for this on their product support forum:  by not having alterantives, they are ensuring that Blogger users, among others, cannot use their service.

If the official answer is still "no", then you lot could also ask in other on-line forums if anyone has establish whatsoever other work-arounds.



An afterthought: what isn't recommended

I've recently seen someone suggest in a help forum that people with custom domains tin put files into their blog's root directory by FTP'ing the files into place.

 This may exist true, if the service that you are purchasing from your domain registrar includes file-hosting. Simply file hosting(*)

  1. Isn't necessary for a custom domain used in Blogger (since Google hosts our files for us), and
  2. Isn't available as part of the services when you buy a custom-domain through Blogger.

So it'due south not a general solution for most Blogger users, though it may work for some.

Initially I was a little sceptical of the idea: Blogger doesn't await to see any files in our root directory, and so I was concerned that it might do strange things if it found them at that place. But on reflection, I think there is probably a depression risk of this happening, since the file-location is outside Blogger's control.

(*) To avoid whatsoever confusion, file hosting and DNS hosting are not the aforementioned matter. If you lot buy a custom domain for your blog from a registrar without going through Google/Blogger, and then you do demand to pay for DNS hosting, merely do not need to purchasefile-hosting.



Related Articles

File hosts - places to store files used in your blog.

Picasa-web-albums: a quick introduction

How Blogger data is organised

Setting up a new ambassador for your blog

Options for letting other people write in your blog

URL:

HTML link code:

BB (forum) link code:

raymondreartiong.blogspot.com

Source: http://blogger-hints-and-tips.blogspot.com/2012/04/adding-files-to-root-directory-for-your.html