-
Yes, that’s right – like in my screenshot above
-
I’m not suggesting you do the modification. However, if you can’t wait, you could certainly test that change.
- For a temporary change (gone after rebuild):
cd /var/discourse
./launcher enter app
sed -i "s/FastImage.new(@file)/FastImage.new(@file, :raise_on_failure=>true)/" lib/upload_creator.rb
sed -i "s/FastImage.new(original_path)/FastImage.new(original_path, :raise_on_failure=>true)/" app/models/upload.rb
exit
- For a persistent change (stay after rebuild):
cd /var/discourse
nano containers/app.yml (use your preferred editor)
Add the following custom commands at the end (run section):
- replace:
filename: "/var/www/discourse/lib/upload_creator.rb"
from: "FastImage.new(@file)"
to: "FastImage.new(@file, :raise_on_failure=>true)"
- replace:
filename: "/var/www/discourse/app/models/upload.rb"
from: "FastImage.new(original_path)"
to: "FastImage.new(original_path, :raise_on_failure=>true)"
Then, rebuild:
./launcher rebuild app
- I guess so if you plan to upload files without extensions. I did not check if other occurrences required the same change.