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
fc03248d
Unverified
Commit
fc03248d
authored
Oct 13, 2018
by
Janko Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show handling "upload-success" in Uppy
parent
bb133957
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
README.md
README.md
+13
-0
No files found.
README.md
View file @
fc03248d
...
@@ -172,6 +172,19 @@ string:
...
@@ -172,6 +172,19 @@ string:
uppy
.
use
(
Uppy
.
AwsS3Multipart
,
{
uppy
.
use
(
Uppy
.
AwsS3Multipart
,
{
serverUrl
:
''
,
// uses relative URLs (pass 'https://your-app.com' for absolute URLs)
serverUrl
:
''
,
// uses relative URLs (pass 'https://your-app.com' for absolute URLs)
})
})
uppy
.
on
(
'upload-success'
,
function
(
file
,
data
,
uploadURL
)
{
var
uploadedFileData
=
JSON
.
stringify
({
id
:
uploadURL
.
match
(
/
\/
cache
\/([^\?]
+
)
/
)[
1
],
// extract key without prefix
storage
:
'cache'
,
metadata
:
{
size
:
file
.
size
,
filename
:
file
.
name
,
mime_type
:
file
.
type
,
}
})
// ...
})
```
```
The
`Uppy::S3Mutipart::App`
initializer accepts
`:options`
for specifying
The
`Uppy::S3Mutipart::App`
initializer accepts
`:options`
for specifying
...
...
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