Difference between revisions of "Uploading & Downloading Files"

From HE FAQ
Jump to: navigation, search
(Added questions from he.net/faq per mleber)
(How do I upload my web content files to the server?)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== How do I get my web pages to the server? ==
+
{{1 prefix}}
 +
== How do I upload my web content files to the server? ==
  
To get your web pages to the server you will need to use SFTP.
+
To upload your web content files to the server you will need to use SFTP which is Secure File Transfer Protocol.
  
== Do I need to know SFTP? ==
+
You will need to set your client program to use SFTP as the protocol, and set it to use port 22 which is the SFTP port.
  
If you want to sign up for a Self Serve account you need to know how to use SFTP. It's a fairly simply process, and our tutorials as well as many places on the internet have simple instructions on its use.
+
You will need to use your account name as the user name or login name and set your server name (example.he.net) as the host name.
  
 +
When prompted for the password, you will use the administrative password for your account.
  
== What SFTP client should I use? ==
+
Your account name, server name, and administrative password are sent by email to you when your account is created.
  
Our [[Internet Related Software]] page lists a few SFTP programs that work well with our systems, though there are commercial packages that work as well. You only need to make sure it has the SFTP(SCP) protocol included. Most older programs do not.
+
You should place your web content files within the /home/account_name/public_html directory for your account. (replace account_name with your actual account name)
  
You can find a basic tutorial on the use of WinSCP at:
+
If you did not receive such an email or have lost that email and do not know your password, you can contact our 24/7 Support department:
  
[http://www.he.net/faq/tutorials/winscp WinSCP for Windows Tutorial]
+
support@he.net
 +
510-580-4100
  
You can find more tutorials on this and other software at:
+
== What SFTP client should I use? ==
  
[http://www.he.net/faq/tutorials/ Hurricane Electric Tutorials]
+
Our [[Internet Software]] page lists a few free SFTP client programs which you can use, but its really up to you.
  
 +
As long as the client program supports SFTP, it should work with our server just fine.
  
== Does your site support multiple www pages on the same directory? ==
+
Some older FTP clients do not support SFTP, so you may have to download and install a newer version or a different client program.
  
Yes.
+
You can find a basic tutorial on the use of WinSCP [[WinSCP Tutorial|here]]. This tutorial requires Flash.
 +
 
 +
Other clients look a little different, but use the same settings.
 +
 
 +
We recommend to use your server's name (example.he.net) as the host name.
  
  
Line 30: Line 38:
 
As often as you like, when you like. Each upload generates traffic equivalent to one hit on the document involved.
 
As often as you like, when you like. Each upload generates traffic equivalent to one hit on the document involved.
  
 +
Generally, if you are dealing with relatively small files, and don't upload very frequently, there should be no charges.
 +
 +
It is very rare for a customer to get an overage charge due to uploading of files, but if you are worried about it, you can always check your storage and traffic totals or contact our Support department.
  
 
== How many people would have access to upload and/or edit html files per account? ==
 
== How many people would have access to upload and/or edit html files per account? ==
  
As many people as have the account name and password and know how to use SFTP or SSH.
+
As many people as have the account name and password and know how to use SFTP.  There is no support for multiple usernames/passwords being used to access the same account, or being given partial access.
  
 
+
You could set up a web based PHP file manager to upload files through PHP as well, but this is a more advanced topic beyond the scope of this FAQ page.
== Can I break my pages down into sub directories? ==
+
 
+
Yes.
+
  
  
 
== Are SFTP uploads the only way to get a file there? ==
 
== Are SFTP uploads the only way to get a file there? ==
  
It's the primary way, but there are work-arounds.
+
There are other ways that an experienced web designer could come up with, but SFTP is the only method we actively support.
 
+
 
+
 
+
== Can I create my own disk-library structure? ==
+
  
You can create any structure of directories you want.
+
Another method would be to use a PHP web based file manager.
  
  
Line 57: Line 61:
  
  
== I would like information on how I will set up my Web http pages, and any other requirements as well. ==
+
== How do I upload my "index.html" with the four letter extension when my Windows PC will only allow me to add a three letter extension. ==
  
When you sign up for an account you receive basic instructions.
+
You can rename the file after you've uploaded it with most SFTP clients. You could also just name it "index.htm", and it should show up correctly.
 
+
 
+
== How do I upload my "index.html" with the four letter extension when my PC will only allow me to add a three letter extension. ==
+
 
+
You have two solutions at your disposal to resolve this:
+
 
+
1. Get a fully functional FTP client for Windows (I am assuming you are using windows) which allows you to set the destination file name. There are several free FTP clients that support this.
+
 
+
2. SSH to the server you are on, for example, thor.he.net. Log in using your account name and password and type:
+
 
+
      cd public_html
+
 
+
      mv index.htm index.html
+
  
  
 
== If a user accesses a large 200k gif and then cancels it after 5 k are received will it show up in the logs and then the stats as a 200k transfer? ==
 
== If a user accesses a large 200k gif and then cancels it after 5 k are received will it show up in the logs and then the stats as a 200k transfer? ==
  
Only the actual data transferred, in this case 5k.
+
Only the actual data transferred, in this case 5k. Generally, overages due to traffic are highly unlikely with newer account types. Contact us if you are uncertain about your account.
  
  
Line 83: Line 74:
  
 
The file was probably uploaded with your SFTP client in binary mode. This does CR-LF to LF translation. (DOS to Unix text translation.) Don't do this. If you use a command line SFTP client, be sure to type "ascii" before sending up files for download. If you are using a client like WinSCP, be sure you select the ascii transfer option.
 
The file was probably uploaded with your SFTP client in binary mode. This does CR-LF to LF translation. (DOS to Unix text translation.) Don't do this. If you use a command line SFTP client, be sure to type "ascii" before sending up files for download. If you are using a client like WinSCP, be sure you select the ascii transfer option.
 
 
== What, if any, files do you want to start or will you put a dummy in the directory for me to overwrite? ==
 
 
We prefer you install your pages as soon as possible. All new accounts are created with a temporary home page.
 
  
  
 
== I made some directories by accident. Why won't the server allow me to delete them? ==
 
== I made some directories by accident. Why won't the server allow me to delete them? ==
  
You may be having trouble because if you using SSH or a text based SFTP client you have to put quotes around the filename.
+
You may be having trouble because you need to delete the files inside the directory first, or you might be having trouble because you typed the name wrong. Names of files and directories are case-sensitive.
 
+
Also, you may be having trouble because you need to delete the files inside the directory first or you might be having trouble because you typed the name wrong. Files and directories are case-sensitive.
+
 
+
 
+
 
+
== Is there a way for anonymous users to upload files? ==
+
 
+
We don't support incoming directories due to the legal and security risks.
+
 
+
 
+
== Can I use to SSH to edit my web pages? ==
+
 
+
Yes. As for working on your web pages on the server. Our Version 1 and Version 2 servers have pico and vi installed to allow for SSH editing of text files. Our Version 3 servers have nano and vim.
+
 
+
 
+
== Do your web sites support the anonymous FTP function? ==
+
  
No.
+
== Is there a way for anonymous users to upload files or access the server with FTP without logging in first? ==
  
 +
We don't support anonymous FTP access on our servers.
  
 
== Is there a way to download files without anonymous FTP? ==
 
== Is there a way to download files without anonymous FTP? ==
  
You can use file transfer over HTTP. Basically, you put the file in a directory under your public_html directory and link directly to it for downloading. If it's a document file that might display instead of download (depending on the browser used) you can use any compression utility to store the file in an archive for transferring.
+
You can use file transfer over HTTP. Basically, you put the file in a directory under your public_html directory and link directly to it for downloading.
  
Additionally, there are download scripts available that can be installed on your account to allow you to set up "download directories" over HTTP.
+
== I lost/deleted a file on my site by mistake. Do you keep backups? ==
  
 +
We do back up data on our servers nightly, but these backups are run and kept for administrative purposes.
  
== I lost/deleted a file on my site by mistake. Do you keep backups? ==
+
We recommend that you keep backup copies of your web content, database, and email on your local computer or elsewhere for archiving.
 
+
We do back up data on our servers nightly, but these backups are run and kept for administrative purposes. We recommend that you keep backup copies of your site on your local computer, as the servers back up their data nightly, overwriting the previous backup.
+
  
 
Please refer to our [http://www.he.net/webtos.html Terms of Service], item 9, ''"Use of Hurricane Electric services, including the storage of information, is at the account holder's sole risk."
 
Please refer to our [http://www.he.net/webtos.html Terms of Service], item 9, ''"Use of Hurricane Electric services, including the storage of information, is at the account holder's sole risk."
 
''
 
''
 
**********
 
 
Do I need to know FTP?
 
 
If you want to sign up for a Self Serve account you need to know how to use FTP. It usually isn't all that complicated. Ask a friend or lab assistant that knows. Take the time to learn about FTP, it is an investment in yourself.
 
What FTP client should I use?
 
 
If you are using a Mac try using Fetch. Fetch can be obtained from:
 
 
http://www.dartmouth.edu/comp/resources/downloads/mac/connect/fetch.html
 
 
If you are using a PC try using WinSCP which can be obtained from:
 
 
http://www.winscp.com/
 
 
You can find a basic tutorial on the use of WinSCP at:
 
 
WinSCP for Windows Tutorial
 
 
You can find more tutorials on this and other software at:
 
 
Hurricane Electric Tutorials
 
Does your site support multiple WWW pages on the same directory?
 
 
Yes.
 
How often can I upload my revised HTML pages and what is the cost of each upload?
 
 
As often as you like, when you like. Each upload generates traffic equivalent to one hit on the document involved.
 
How many people would have access to upload and/or edit html files per account?
 
 
As many people as have the account name and password and know how to use FTP or ssh.
 
Can I break my pages down into sub directories?
 
 
Yes.
 
Do we use standard HTML to design Home pages or a special format?
 
 
You use whatever format you want in your pages. However, most browsers won't understand anything but standard HTML, or Netscape-enhanced HTML, so we suggest you use one of these two formats...
 
Are FTP uploads the only way to get a file there?
 
 
It's the primary way, but there are work arounds.
 
Can I create my own disk-library structure?
 
 
You can create any structure of directories you want.
 
Am I 'limited' on changing files, etc.?
 
 
No. You can change files as often and as many times as you like.
 
How do I transfer files to your server?
 
 
You use FTP.
 
I would like information on how I will set up my Web http pages, and any other requirements as well.
 
 
When you sign up for an account you receive basic instructions.
 
How do I upload my "index.html" with the four letter extension when my PC will only allow me to add a three letter extension.
 
 
You have two solutions at your disposal to resolve this:
 
 
  1. Get a fully functional FTP client for Windows (I am assuming you are using windows) which allows you to set the destination file name. There are several free FTP clients that support this.
 
 
  2. ssh to the server you are on, for example, thor.he.net. Log in using your account name and password and type:
 
 
      cd public_html
 
 
      mv index.htm index.html
 
 
If a user accesses a large 200k gif and then cancels it after 5 k are received will it show up in the logs and then the stats as a 200k transfer?
 
 
Only the actual data transferred, in this case 5k.
 
I uploaded a known good html file to the public_html directory. I logged onto to my WWW page and downloaded it to verify that it worked. The file now had errors. Why did a good upload resulted in a bad download?
 
 
The file was probably uploaded with your FTP client in binary mode. This does CR-LF to LF translation. (DOS to Unix text translation.) Don't do this. If you use a command line FTP client, be sure to type "ascii" before sending up files for download. If you are using a client like WS_FTP, be sure you select the ascii transfer option. With WS_FTP, you do this by clicking on the circle near the word "ASCII".
 
Can I copy files from my local Web directory to my FTP directory?
 
 
Yes, but you should know it makes no difference to the FTP client where you are putting your file as long as you have write permission.
 
What, if any, files do you want to start or will you put a dummy in the directory for me to overwrite?
 
 
We prefer you install your pages as soon as possible. All new accounts are created with a temporary home page.
 
I'm having trouble putting a file in /pub/myaccount directory via FTP. I get a response of access denied. Is this something I should be able to do?
 
 
You need to FTP non-anonymously. Log in with your account name and password (if your FTP client does not prompt you for your account name and password, you are using anonymous FTP, quit and start again with the appropriate options for the FTP client you are using).
 
I made some directories by accident and the server will not allow me to delete them. What's the deal with that?
 
 
You may be having trouble because if you using ssh or a text based FTP client you have to put quotes around the filename.
 
 
Also, you may be having trouble because you need to delete the files inside the directory first or you might be having trouble because you typed the name wrong.
 
How do I delete files in Fetch?
 
 
After connecting to the site with your account name and password using Fetch:
 
 
  1. Select the file or directory. Choose "Delete File or Directory" from which ever menu it is in. It will delete the currently selected file. This is the technique to use because it avoids you having to type in the name again.
 
 
  2. Choose "Delete File or Directory" from the menus. Then you have to type in the file or directory name. This way leads to problems with incorrect names.
 
 
Is there a way for anonymous users to upload files?
 
 
We don't currently support incoming directories due to the legal and security risks.
 
How do I get my web pages to the server?
 
 
To get your Web pages to the server your going to have to use FTP. When it prompts you for a name and password, enter YOUR account name and YOUR password. (This will put you in YOUR home directory).
 
 
Once you have finished this then you are going to have to send you html files to the server.
 
 
Select the files on the local machine (Your machine) and click on Send This should send the file from your machine onto the server.
 
Can I use to ssh to edit my web pages?
 
 
Yes. As for working on your Web pages on the server. I would recommend using the "pico" editor. Just type pico yourfilename your options are listed at the bottom of the screen.
 
How should I upload JPG files using FTP?
 
 
Some FTP clients don't know file is binary and not text and so they do carriage return to line feed translation (changing the value of certain bytes to new values) on your image. Which damages it.
 
 
If you are using a text based FTP client (like through FTP) type binary. Otherwise select binary or raw data transfer.
 
I usually upload documents with rz command from terminal mode. Can I upload my documents in this way?
 
 
Yes.
 
Does your Web/FTP site support the anonymous FTP function needed to download files?
 
 
No.
 
Is there a way to download files without anonymous FTP?
 
 
You can also transfer your .EXE's as files via HTTP but it isn't as efficient. Since most web browsers support FTP URLs you can have your Web documents (in your Web directory on our system) refer to your FTP files (in your anonymous FTP directory on our system).
 
 
FTP can be more efficient that HTTP for transferring files because some implementations support on the fly compression and decompression.
 
I lost/deleted a file on my site by mistake. Do you keep backups?
 
 
We do back up data on our servers nightly, but these backups are run and kept for administrative purposes. We recommend that you keep backup copies of your site on your local computer, as the servers back up their data nightly, overwriting the previous backup.
 
 
Please refer to our Terms of Service, item 9, "Use of Hurricane Electric services, including the storage of information, is at the account holder's sole risk."
 
  
 
[[Category:Webhosting]]
 
[[Category:Webhosting]]

Latest revision as of 10:02, 17 July 2012

This information only pertains to Hurricane Electric's Shared Web Hosting package. There may be different information in our other categories.

How do I upload my web content files to the server?

To upload your web content files to the server you will need to use SFTP which is Secure File Transfer Protocol.

You will need to set your client program to use SFTP as the protocol, and set it to use port 22 which is the SFTP port.

You will need to use your account name as the user name or login name and set your server name (example.he.net) as the host name.

When prompted for the password, you will use the administrative password for your account.

Your account name, server name, and administrative password are sent by email to you when your account is created.

You should place your web content files within the /home/account_name/public_html directory for your account. (replace account_name with your actual account name)

If you did not receive such an email or have lost that email and do not know your password, you can contact our 24/7 Support department:

support@he.net 510-580-4100

What SFTP client should I use?

Our Internet Software page lists a few free SFTP client programs which you can use, but its really up to you.

As long as the client program supports SFTP, it should work with our server just fine.

Some older FTP clients do not support SFTP, so you may have to download and install a newer version or a different client program.

You can find a basic tutorial on the use of WinSCP here. This tutorial requires Flash.

Other clients look a little different, but use the same settings.

We recommend to use your server's name (example.he.net) as the host name.


How often can I upload my revised HTML pages and what is the cost of each upload?

As often as you like, when you like. Each upload generates traffic equivalent to one hit on the document involved.

Generally, if you are dealing with relatively small files, and don't upload very frequently, there should be no charges.

It is very rare for a customer to get an overage charge due to uploading of files, but if you are worried about it, you can always check your storage and traffic totals or contact our Support department.

How many people would have access to upload and/or edit html files per account?

As many people as have the account name and password and know how to use SFTP. There is no support for multiple usernames/passwords being used to access the same account, or being given partial access.

You could set up a web based PHP file manager to upload files through PHP as well, but this is a more advanced topic beyond the scope of this FAQ page.


Are SFTP uploads the only way to get a file there?

There are other ways that an experienced web designer could come up with, but SFTP is the only method we actively support.

Another method would be to use a PHP web based file manager.


Am I 'limited' on changing files, etc.?

No. You can change files as often and as many times as you like.


How do I upload my "index.html" with the four letter extension when my Windows PC will only allow me to add a three letter extension.

You can rename the file after you've uploaded it with most SFTP clients. You could also just name it "index.htm", and it should show up correctly.


If a user accesses a large 200k gif and then cancels it after 5 k are received will it show up in the logs and then the stats as a 200k transfer?

Only the actual data transferred, in this case 5k. Generally, overages due to traffic are highly unlikely with newer account types. Contact us if you are uncertain about your account.


I uploaded a known good html file. I logged onto to my WWW page and downloaded it to verify that it worked. The file now has errors. Why did a good upload resulted in a bad download?

The file was probably uploaded with your SFTP client in binary mode. This does CR-LF to LF translation. (DOS to Unix text translation.) Don't do this. If you use a command line SFTP client, be sure to type "ascii" before sending up files for download. If you are using a client like WinSCP, be sure you select the ascii transfer option.


I made some directories by accident. Why won't the server allow me to delete them?

You may be having trouble because you need to delete the files inside the directory first, or you might be having trouble because you typed the name wrong. Names of files and directories are case-sensitive.

Is there a way for anonymous users to upload files or access the server with FTP without logging in first?

We don't support anonymous FTP access on our servers.

Is there a way to download files without anonymous FTP?

You can use file transfer over HTTP. Basically, you put the file in a directory under your public_html directory and link directly to it for downloading.

I lost/deleted a file on my site by mistake. Do you keep backups?

We do back up data on our servers nightly, but these backups are run and kept for administrative purposes.

We recommend that you keep backup copies of your web content, database, and email on your local computer or elsewhere for archiving.

Please refer to our Terms of Service, item 9, "Use of Hurricane Electric services, including the storage of information, is at the account holder's sole risk."