Why is my uploaded file 0 bytes?


Browse by products and services

  • Applies to: Grid
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: FTP access, FileZilla

Symptom

Using FileZilla, you just uploaded a file and it reads as 0 bytes.

READ ME FIRST

The publishing of this information does not imply support of this article. This article is provided solely as a courtesy to our customers. Please take a moment to review the Statement of Support.

Likey cause

There was most likely a problem with the upload. There are a few common causes for uploaded files to read as 0 bytes:

  • The file was corrupted during transfer. This can be caused by connectivity issues between your computer and your server. We can partially test this by running 'traceroute domain.com' in Terminal (Mac users only). For information on how to perform a traceroute with Windows/Mac (useful to find network issues), please see Using the traceroute command.
  • Full disk space on the server. If the disk space is full on the server, it will cause issues similar to this with your upload.
  • Charset issues. Your Grid charset is UTF-8. Occasionally, if you upload a file that isn't in this charset, you may encounter issues.
  • The file was corrupted prior to upload. Please ensure that all files you upload are functioning correctly.

Possible solutions

Here is a list of possible solutions:

  • Try using SFTP, this can sometimes resolve connectivity problems by creating a more secure connection between you and your server.
  • Try from a different connection. If the issue is with connectivity, you may benefit from switching locations (thus changing how you're getting to the server).
  • Try changing your FileZilla Charset settings to Force UTF-8. See Figure 1:


    Figure 1.

  • Try setting your FTP transfer settings to Passive and ensure that your settings are similar to what we recommend in our KnowledgeBase. For information on setting up a FTP in Filezilla, please see: Using FileZilla for FTP/SFTP.
  • Try using a program such as WinRAR to compress your files, you can configure this program to save the file in "archives" (pieces). Smaller pieces lessen the chance of corruption mid-transfer.