Skip to main content

Uploads fail

1. What the site allows​

Under Poly Community → Settings → Posts → Pictures and files:

  • Pictures in a post, in a reply, and Files in a post, in a reply: how many each may carry. 0 is none.
  • File types and sizes: which kinds members may attach (pictures, video, audio, documents, archives, or types one by one), and Largest file. 0 lets files be as large as the server takes, and the row says how large that is.

A file of a kind that is not allowed, or larger than allowed, is refused with why, before it is sent.

2. What the server takes​

Largest file can never go past the limits of PHP on your server, upload_max_filesize and post_max_size, shown under Tools → Site Health → Info → Media handling. Your host raises them.

A video too large for those limits is shrunk in the browser first when Shrink large videos before upload is on, under Settings → Files.

3. Where files go​

  • This server: the uploads folder of WordPress must be writable, as for any upload to the site.
  • A cloud storage, under Settings → Services → Storage: its status says whether it takes files. A file that could not move is listed as Failed under Poly Community → Content → Files, with Retry.

4. Videos that do not play​

  • A video is made ready to stream after it uploads. Until then it plays as it was uploaded, and Settings → Files → Video processing says when videos are not being converted.
  • A video kept in a cloud storage plays in most browsers only when the storage lets your site read it: set that once under Storage, with Configure CORS.
  • On a server that does not read .htaccess files, such as nginx, Settings → Files shows a rule to add to the server, so the files of a video are not open to anyone.

5. The count of files is wrong​

After moving files by hand, or restoring a backup of the database without the uploads folder, Rebuild index under Settings → Files → Where files are kept counts what is there again.