diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-07-09 21:51:42 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2019-08-23 12:19:14 +0300 |
commit | 41d52bbfe9725a93013ea6b072efcdc16e591b14 (patch) | |
tree | b8ab973e0173fd61f32f17f19c47476b1638c40d /app/uploaders/personal_file_uploader.rb | |
parent | 36a729f05f1b9c2b3935b9d121b8fe3172ce5cc1 (diff) |
Add direct upload support for personal snippets
Diffstat (limited to 'app/uploaders/personal_file_uploader.rb')
-rw-r--r-- | app/uploaders/personal_file_uploader.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/uploaders/personal_file_uploader.rb b/app/uploaders/personal_file_uploader.rb index 1ac69601d18..3efdd0aa1d9 100644 --- a/app/uploaders/personal_file_uploader.rb +++ b/app/uploaders/personal_file_uploader.rb @@ -6,6 +6,10 @@ class PersonalFileUploader < FileUploader options.storage_path end + def self.workhorse_local_upload_path + File.join(options.storage_path, 'uploads', TMP_UPLOAD_PATH) + end + def self.base_dir(model, _store = nil) # base_dir is the path seen by the user when rendering Markdown, so # it should be the same for both local and object storage. It is |