JM Tech Power

Guides

Check your files before you upload: the list, the × button, and one file per name

← 全部文章 邮箱 RSS Atom

When you add source files to a project on its Upload files page (from the project page, or Files on My projects), the files you pick or drop now show in a list under the box, before anything is sent.

The list

  • Under the caption Files to upload, each row shows a file's name and size.
  • Press × on a row to take just that file out. The rest stay picked, and keyboard focus stays in the list, on the next ×.
  • The total size of your files, shown under your free storage, updates as files come and go.
  • With more than 50 files, the first 50 are listed and the rest are counted, as in …and 12 more files.

One file per name

Your browser sends only file names, not the folders they came from, so two files called README.md would land in the same place. Two files with the same name cannot be uploaded together.

So if you pick or drop a file whose name is already in the list:

  • the file already in the list stays;
  • the new one is left out, and a note above the list names it — Left out README.md: a file with the same name is already in the list…;
  • the note goes away the next time you pick, drop or remove a file.

Want the new one instead? Press × on the file already in the list, then pick or drop the new one again.

Good to know

  • Names are compared exactly: A.txt and a.txt count as two different names, and both are uploaded.
  • Dropping the very same file twice still adds it once, with no note.
  • If your browser cannot change the picked files from a page script, the list still shows but has no × buttons and nothing is left out. An upload with two files of the same name is then refused when you send it, with Duplicate file path in upload, and nothing is stored — remove one and try again.

More on source files: Upload your project's source files. More guides at https://jmtechpower.com/articles.

评论 (0)

暂无评论,成为第一个评论者!