DEV: Trigger an event before creating an upload

DEV: Trigger an event before creating an upload

diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb
index b806e2f..368569a 100644
--- a/lib/upload_creator.rb
+++ b/lib/upload_creator.rb
@@ -34,6 +34,8 @@ class UploadCreator
       return @upload
     end
 
+    DiscourseEvent.trigger(:before_upload_creation, @file)
+
     DistributedMutex.synchronize("upload_#{user_id}_#{@filename}") do
       # test for image regardless of input
       @image_info = FastImage.new(@file) rescue nil

GitHub sha: ac555610