summaryrefslogtreecommitdiff
path: root/app/uploaders
Commit message (Collapse)AuthorAgeFilesLines
* Periodically clean up temporary upload files to recover storage spaceblackst0ne2017-04-101-4/+0
|
* Handle relative and absolute Upload paths in the UploadersRobert Speicher2017-03-063-6/+45
|
* Add `RecordsUploads` module to record Upload records via callbacksRobert Speicher2017-03-064-0/+46
|
* Minor refactoring of UploadersRobert Speicher2017-02-246-23/+26
| | | | | | | | | - 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.
* Enable Style/MutableConstantDouwe Maan2017-02-231-3/+3
|
* Merge branch 'svg-xss-fix' into 'security' Robert Speicher2017-02-152-2/+9
| | | | | Fix for XSS vulnerability in SVG attachments See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2059
* Copy, don't move uploaded avatar filesJacob Vosmaer2017-01-031-0/+11
|
* Add Gitlab::Middleware::MultipartJacob Vosmaer2016-12-156-21/+16
|
* Render SVG as images in notesAndre Guedes2016-12-081-1/+1
|
* Remove event caching codeYorick Peterse2016-11-231-6/+0
| | | | | | | | | | | | | | | | | | | Flushing the events cache worked by updating a recent number of rows in the "events" table. This has the result that on PostgreSQL a lot of dead tuples are produced on a regular basis. This in turn means that PostgreSQL will spend considerable amounts of time vacuuming this table. This in turn can lead to an increase of database load. For GitLab.com we measured the impact of not using events caching and found no measurable increase in response timings. Meanwhile not flushing the events cache lead to the "events" table having no more dead tuples as now rows are only inserted into this table. As a result of this we are hereby removing events caching as it does not appear to help and only increases database load. For more information see the following comment: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6578#note_18864037
* Remove magic comments from Ruby files (!5456)winniehell2016-07-245-8/+0
|
* Remove VideoJS and clean the integrationRémy Coutable2016-07-201-2/+4
| | | | | | | | | Handle videos in: - MD preview in notes: commit, issue/MR, MR diff - New notes in: commit, issue/MR, MR diff - Persisted notes in: commit, issue/MR, MR diff Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove duplication, useless rescue, and avoid using ActionViewRémy Coutable2016-07-191-13/+16
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Get rid of `is_image` in FileUploaderRémy Coutable2016-07-191-1/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* First support of videos in issues, MRs and notesEric Hayes2016-07-192-8/+24
| | | | | * Registered video MIME types * Currently supporting browser-supported formats with extensions that match the mime type
* squashed - added avatar saver/restorer and specsfix/import-export-project-avatarJames Lopez2016-07-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | added spec for avatar saver avatar saver! added avatar restorer spec fix spec added avatar restorer class fix export service fix warnings, added changelog fix spec some refactoring based on feedback fixed a few issues after testing i/e avatar
* Enable Style/SpaceAfterComma Rubocop coprubocop/enable-space-after-copsGrzegorz Bizon2016-06-291-1/+1
|
* Remove reduntant `move_to_store` overrideGrzegorz Bizon2016-03-301-4/+4
|
* Add method that returns markdown in file uploaderGrzegorz Bizon2016-03-301-0/+4
|
* Get FileUploader into test harness using factoryGrzegorz Bizon2016-03-301-2/+2
| | | | | | | | 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
* Add markdown pattern for uploads to file uploaderGrzegorz Bizon2016-03-301-0/+1
|
* Revert "Merge branch 'avatar-cropping' into 'master' "revert-avatar-croppingRémy Coutable2016-03-151-11/+0
| | | | | This reverts commit 01160fc06182de89c400af174861f6545ad6ceb8, reversing changes made to 4bff9daf8b6d85e9c78565e21cfaa3f6d36f0282.
* Minor changes on avatar cropping internalsJohann Pardanaud2016-02-181-4/+4
| | | | | - Avoid multiple calls to `validates` for the avatar attributes. - In a cropping process, don't check if the model inherits `User`, check if it responds to `:avatar_crop_size`.
* Improve avatar cropping internals, based on suggestions made by @rspeicher ↵Johann Pardanaud2016-02-171-8/+1
| | | | on !2773
* Improve user experience for avatar croppingJohann Pardanaud2016-02-161-1/+8
| | | | | - Avoid incomprehensible errors on non-integer cropping values - Set the default cropping area to 80%
* Fix failing tests introduced in commit 6d58088Johann Pardanaud2016-02-101-2/+4
|
* Fix #7959: Fix avatar stretching by providing a cropping featureJohann Pardanaud2016-02-091-0/+9
|
* Let the CI runner know about builds that this build depends onci/build_dependenciesKamil Trzcinski2016-01-141-0/+4
| | | | This allows us to implement artifacts passing: runner will download artifacts from all prior builds
* DRY up upload and download servicesapi-project-uploadDouwe Maan2016-01-081-0/+15
|
* Add hotfix that allows to access build artifacts created before 8.3fix/missing-ci-build-tracesGrzegorz Bizon2015-12-291-6/+2
| | | | | | | | | | | This is a temporary hotfix that allows to access build artifacts created before 8.3. See #5257. This needs to be changed after migrating CI build files. Note that `ArtifactUploader` uses `artifacts_path` to create a storage directory before and after parsisting `Ci::Build` instance, before and after moving a file to store (save and fetch a file).
* Expose artifacts pathci-artifacts-pathKamil Trzcinski2015-11-231-3/+3
|
* Merge branch 'refactor-duplication' into 'master' Dmitriy Zaporozhets2015-11-164-51/+25
|\ | | | | | | | | | | | | | | | | | | | | | | Remove some code duplication * remove duplicate code in uploaders * remove duplicate code in NotificationHelper * remove duplicate code in Repository Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !1800
| * Remove duplicate methods in uploadersDmitriy Zaporozhets2015-11-164-51/+25
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Add support for git lfs.lfsMarin Jankovski2015-11-161-0/+29
|/
* Move tmp artifacts to shared/artifacts/tmp/. Check for GitLab-Workhorse nowKamil Trzcinski2015-11-101-2/+2
|
* Implement Build ArtifactsKamil Trzcinski2015-11-101-0/+50
| | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* Fix: Images cannot show when projects' path was changeduploads_path_fixValery Sizov2015-10-141-1/+1
|
* Fix URL to uploaded file.Douwe Maan2015-02-201-0/+4
|
* Merge branch 'extend_markdown_upload' into generic-uploadsDouwe Maan2015-02-201-20/+23
|\ | | | | | | | | | | | | # Conflicts: # app/controllers/files_controller.rb # app/controllers/projects/uploads_controller.rb # app/uploaders/attachment_uploader.rb
| * Use longer upload secret.Douwe Maan2015-02-171-1/+1
| |
| * Refactor.Douwe Maan2015-02-172-27/+13
| |
| * implement Project::UploadsControllerHannes Rosenögger2015-02-171-1/+3
| |
| * Generalize the image upload in markdownHannes Rosenögger2015-02-171-1/+18
| | | | | | | | | | This commit generalizes the image upload via drag and drop so it supports all files. It also adds access control for these files.
* | Split up AttachmentUploader.Douwe Maan2015-02-202-10/+32
| |
* | Revert "Fix broken access control and refactor avatar upload"Dmitriy Zaporozhets2015-02-192-33/+7
|/ | | | This reverts commit 7d5f86f6cbd187e75a6ba164ad6bfd036977dd07.
* Fix broken access control and refactor avatar uploadHannes Rosenögger2015-02-162-7/+33
| | | | | | | | | | | This commit moves the note folder from /public/uploads/note to /uploads/note and changes the uploader accordingly. Now it's no longer possible to avoid the access control by modifing the url. The Avatar upload has been refactored to use an own uploader as well to cleanly seperate the two upload types.
* Revert "Merge pull request #7349 from srna/patch-1"Marin Jankovski2014-12-051-4/+0
| | | | | This reverts commit b37b71d887e8521b8992aa6e4f789a38b393e55a, reversing changes made to 42a1d8083c77d3803320bbbd0ac1559ff32d2519.
* Removed + '' +Tomas Srna2014-10-291-1/+1
|
* Attachment URL with non-/ relative rootTomas Srna2014-07-221-0/+4
| | | The attachment URL was not working with relative_url_root not equal to '/'. I suggest this fix.
* Make existing tests test something, return correct errors.Marin Jankovski2014-05-261-1/+1
|