- Mar 02, 2020
-
-
GitLab Bot authored
-
- Jul 03, 2019
-
-
Heinrich Lee Yu authored
We don't need to find the filename from the remote URL
-
- May 17, 2019
-
-
Stan Hu authored
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24550 fixed the case where the wrong path on disk was being searched, but it inadvertently ommitted the `/uploads/-/system` prefix when rendering the Markdown for personal snippet uploads when they were stored directly in object storage. A personal snippet path is stored using FileUploader#upload_path. The format for the path: Local storage: :random_hex/:filename. Object storage: personal_snippet/:id/:random_hex/:filename. upload_paths represent the possible paths for a given identifier, which will vary depending on whether the file is stored in local or object storage. upload_path should match an element in upload_paths. base_dir represents the path seen by the user in Markdown, and it should always be prefixed with uploads/-/system. store_dirs represent the paths that are actually used on disk. For object storage, this should omit the prefix /uploads/-/system. For example, consider the requested path /uploads/-/system/personal_snippet/172/ff4ad5c2/file.png. For local storage: base_dir: uploads/-/system/personal_snippet/172 upload_path: ff4ad5c2/file.png upload_paths: ["ff4ad5c2/file.png", "personal_snippet/172/ff4ad5c2/file.png"]. store_dirs: {1=>"uploads/-/system/personal_snippet/172/ff4ad5c2", 2=>"personal_snippet/172/ff4ad5c2"} For object storage: upload_path: personal_snippet/172/ff4ad5c2/file.png Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61671
-
- May 05, 2019
-
-
Stan Hu authored
-
- Nov 12, 2018
-
-
Jarka Kadlecova authored
Extract code to make it easier reusable - introduce AttributesRewriter and ContentRewriter - support group entites when rewriting content - make Uploader copy_to working for Namespaces
-
- Sep 04, 2018
-
-
- Jul 18, 2018
-
-
Jan Provaznik authored
-
- Jul 13, 2018
-
-
James Lopez authored
-
- Jul 05, 2018
-
-
gfyoung authored
Partially addresses #47424.
-
- Jul 03, 2018
-
-
Micael Bergeron authored
-
Micael Bergeron authored
-
- Jun 06, 2018
-
-
Micael Bergeron authored
-
- Mar 08, 2018
-
-
File uploads on objects storage should use hashed storage Closes #4952 See merge request gitlab-org/gitlab-ee!4597
-
- Mar 01, 2018
-
-
Micael Bergeron authored
-
- Feb 28, 2018
-
-
Kamil Trzcińśki authored
This reverts commit 54a575f1, reversing changes made to c63af942.
-
Sean McGivern authored
Move uploads to object storage Closes #4163 See merge request gitlab-org/gitlab-ee!3867
-
- Feb 06, 2018
-
-
Micael Bergeron authored
it will also automatically prune empty directories for `FileUploader`-based uploaders.
-
- Feb 02, 2018
-
-
Micael Bergeron authored
-
Micael Bergeron authored
-
- Feb 01, 2018
-
-
Micael Bergeron authored
-
- Dec 07, 2017
-
-
Jarka Kadlecova authored
-
- Nov 28, 2017
-
-
Gabriel Mazetto authored
-
- Nov 21, 2017
-
-
Gabriel Mazetto authored
-
- Oct 30, 2017
-
-
Gabriel Mazetto authored
-
- Aug 01, 2017
-
-
Gabriel Mazetto authored
-
- Jun 08, 2017
-
-
Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
-
DJ Mountney authored
Ran: - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch - git checkout -b 9-2-5-security-patch origin/v9.2.2 - git apply patchfile.patch - git commit - [Got the sha ref for the commit] - git checkout -b upstream-9-2-security master - git cherry-pick <SHA of the patchfile commit> - [Resolved conflicts] - git cherry-pick --continue
-
- May 02, 2017
-
-
Jarka Kadlecova authored
-
- Apr 09, 2017
-
-
blackst0ne authored
-
- Mar 06, 2017
-
-
Robert Speicher authored
-
Robert Speicher authored
-
- Feb 24, 2017
-
-
Robert Speicher authored
- Moves a duplicate `file_storage?` definition into the common `GitlabUploader` ancestor. - Get the `uploads` base directory from a class method rather than hard-coding it where it's needed. This will be used in a subsequent MR to store Uploads in the database. - Improves the specs for uploaders.
-
- Feb 15, 2017
-
-
Robert Speicher authored
Fix for XSS vulnerability in SVG attachments See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2059
-
- Dec 15, 2016
-
-
Jacob Vosmaer (GitLab) authored
-
- Jul 24, 2016
-
-
winniehell authored
-
- Jul 19, 2016
-
-
Rémy Coutable authored
Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
Eric Hayes authored
* Registered video MIME types * Currently supporting browser-supported formats with extensions that match the mime type
-
- Mar 30, 2016
-
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
This attempts to get CarrierWave's uploader - `FileUploader` into test harness using a factory. that makes it easier to build an instance of it. Along with !3435 it may be easier to use uploaders in tests
-