Added spoilers support, fixed a bug

Fixed a bug where posting would fail if no file was seleted to upload