Grzegorz Bizon
b9f5719285
Remove reduntant move_to_store
override
2016-03-30 12:50:19 +02:00
Grzegorz Bizon
99ee822857
Add method that returns markdown in file uploader
2016-03-30 10:56:25 +02:00
Grzegorz Bizon
0b8cefd3b2
Get FileUploader into test harness using factory
...
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
2016-03-30 10:44:18 +02:00
Grzegorz Bizon
cff3497f2c
Add markdown pattern for uploads to file uploader
2016-03-30 10:44:18 +02:00
Rémy Coutable
1714883107
Revert "Merge branch 'avatar-cropping' into 'master'
"
...
This reverts commit 01160fc061
, reversing
changes made to 4bff9daf8b
.
2016-03-15 14:55:40 +01:00
Johann Pardanaud
0701b70c9c
Minor changes on avatar cropping internals
...
- 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`.
2016-02-18 13:12:39 +01:00
Johann Pardanaud
bf6aa15512
Improve avatar cropping internals, based on suggestions made by @rspeicher on !2773
2016-02-17 18:35:16 +01:00
Johann Pardanaud
78588cfca1
Improve user experience for avatar cropping
...
- Avoid incomprehensible errors on non-integer cropping values
- Set the default cropping area to 80%
2016-02-16 19:50:23 +01:00
Johann Pardanaud
3ca16ec2ec
Fix failing tests introduced in commit 6d58088
2016-02-10 13:09:13 +01:00
Johann Pardanaud
6d5808801f
Fix #7959 : Fix avatar stretching by providing a cropping feature
2016-02-09 22:26:50 +01:00
Kamil Trzcinski
ac652d82f1
Let the CI runner know about builds that this build depends on
...
This allows us to implement artifacts passing: runner will download artifacts from all prior builds
2016-01-14 19:45:55 +01:00
Douwe Maan
0614793b38
DRY up upload and download services
2016-01-08 17:38:53 +01:00
Grzegorz Bizon
504696453b
Add hotfix that allows to access build artifacts created before 8.3
...
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).
2015-12-29 09:51:19 +01:00
Kamil Trzcinski
11728b50f9
Expose artifacts path
2015-11-23 13:05:22 +01:00
Dmitriy Zaporozhets
1328e4b504
Merge branch 'refactor-duplication' into 'master'
...
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
2015-11-16 13:05:49 +00:00
Dmitriy Zaporozhets
796bb65170
Remove duplicate methods in uploaders
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-16 13:01:34 +01:00
Marin Jankovski
14032d8eb1
Add support for git lfs.
2015-11-16 12:39:13 +01:00
Kamil Trzcinski
445cdb7579
Move tmp artifacts to shared/artifacts/tmp/. Check for GitLab-Workhorse now
2015-11-10 12:51:51 +01:00
Kamil Trzcinski
d0e3e823a2
Implement Build Artifacts
...
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Valery Sizov
8f584d5f2c
Fix: Images cannot show when projects' path was changed
2015-10-14 18:50:35 +03:00
Douwe Maan
7f1adc3d9c
Fix URL to uploaded file.
2015-02-20 16:01:37 +01:00
Douwe Maan
218283b368
Merge branch 'extend_markdown_upload' into generic-uploads
...
# Conflicts:
# app/controllers/files_controller.rb
# app/controllers/projects/uploads_controller.rb
# app/uploaders/attachment_uploader.rb
2015-02-20 15:37:37 +01:00
Douwe Maan
4ef6ffaad3
Split up AttachmentUploader.
2015-02-20 15:19:50 +01:00
Dmitriy Zaporozhets
8184a65644
Revert "Fix broken access control and refactor avatar upload"
...
This reverts commit 7d5f86f6cb
.
2015-02-19 08:57:35 -08:00
Douwe Maan
ab65be7a2f
Use longer upload secret.
2015-02-17 22:23:31 +01:00
Douwe Maan
d2ebdf664b
Refactor.
2015-02-17 22:23:31 +01:00
Hannes Rosenögger
9729cc584f
implement Project::UploadsController
2015-02-17 22:21:13 +01:00
Hannes Rosenögger
9bf8480b4a
Generalize the image upload in markdown
...
This commit generalizes the image upload via drag and drop so it supports all files.
It also adds access control for these files.
2015-02-17 22:20:44 +01:00
Hannes Rosenögger
7d5f86f6cb
Fix broken access control and refactor avatar upload
...
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.
2015-02-16 20:10:15 +01:00
Marin Jankovski
db585009be
Revert "Merge pull request #7349 from srna/patch-1"
...
This reverts commit b37b71d887
, reversing
changes made to 42a1d8083c
.
2014-12-05 15:33:22 +01:00
Tomas Srna
733012cb65
Removed + '' +
2014-10-29 10:52:54 +01:00
Tomas Srna
1072c95180
Attachment URL with non-/ relative root
...
The attachment URL was not working with relative_url_root not equal to '/'. I suggest this fix.
2014-07-22 13:29:41 +02:00
Marin Jankovski
8bec6b0bcb
Make existing tests test something, return correct errors.
2014-05-26 14:17:46 +02:00
Earle Bunao & Neil Calabroso
6a85cdf162
Implements drag and drop upload in creating issues
2014-05-23 16:22:42 +08:00
Drew Blessing
c26d392b1a
Expire event cache on avatar creation/removal
2013-12-11 09:30:22 -06:00
amouhzi
39d8a64d25
Fixes grack authentification under relative_url_root
...
Ref: e6159b8725
Ref: https://github.com/gitlabhq/gitlabhq/pull/3204
Ref: https://github.com/gitlabhq/gitlabhq/issues/1228
Add Rails' variable in application.rb to support relative url
This variable is used by assets compilation and other modules.
Note that user needs to change application.rb too
Restrict session cookie to the relative path if set.
Ref: 2c2f1e3185
Fix Update attachment_uploader.rb bug with relative URL
See: 161afda3fa
Fix Wall relative bug with attachement files (javascript)
2013-08-15 21:25:09 +02:00
Dmitriy Zaporozhets
9e0246684d
Files controller handle redirect to remote storage. Added config block to carrierwave init
2013-05-15 22:35:59 +03:00
Ben Bodenmiller
fb4a38f607
fixes #3115 and adds support for gif bmp & tiff images
...
when showing image preview check via lowercased extension and adds support for gif bmp & tiff images
2013-05-15 00:41:33 -06:00
Dmitriy Zaporozhets
4821aa6c25
skip protection to aws3
2013-02-15 09:49:35 +02:00
Dmitriy Zaporozhets
a699ebdbcc
handle attahcment with send_file
2013-02-11 21:31:19 +02:00
Dmitriy Zaporozhets
ab19196391
fix attachment uploader for aws
2013-02-11 10:14:32 +02:00
Dmitriy Zaporozhets
14d0ef8f37
Show images preview in notes. Show line additions/deletions for commit
2013-01-04 22:13:32 +02:00
Robert Speicher
7754189187
Fully embrace Ruby 1.9 hash syntax
...
Didn't bother with files in db/, config/, or features/
2012-08-10 18:25:15 -04:00
gitlabhq
9ba1224867
init commit
2011-10-09 00:36:38 +03:00