Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uppy-s3_multipart
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
uppy-s3_multipart
Commits
ffcfeee8
Commit
ffcfeee8
authored
Feb 17, 2022
by
liyijie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加OPTIONS的操作要求
parent
5183b0c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
app.rb
lib/uppy/s3_multipart/app.rb
+6
-1
No files found.
lib/uppy/s3_multipart/app.rb
View file @
ffcfeee8
...
...
@@ -59,6 +59,11 @@ module Uppy
r
.
halt
204
end
# OPTIONS /s3/multipart/:uploadId
r
.
options
String
do
|
upload_id
|
r
.
halt
204
end
# OPTIONS /s3/multipart/:uploadId/:partNumber
r
.
options
String
,
String
do
|
upload_id
,
part_number
|
r
.
halt
204
...
...
@@ -92,7 +97,7 @@ module Uppy
r
.
get
String
,
String
do
|
upload_id
,
part_number
|
key
=
param!
(
"key"
)
result
=
client
_call
(
:prepare_upload_part
,
upload_id:
upload_id
,
key:
key
,
part_number:
part_number
)
result
=
client
(
:prepare_upload_part
,
upload_id:
upload_id
,
key:
key
,
part_number:
part_number
)
{
url:
result
.
fetch
(
:url
)
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment