Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,12 @@
<div class="form-group">
<input type="text" name="description" id="videoDescription" class="form-control" placeholder="Video description" value=""></input>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="upgrade_to_1080" name="upgrade_to_1080"> Upgrade to 1080 </input>
</label>
<div class="form-group">
<input type="text" name="privacy" id="videoPrivacy" class="form-control" value="anybody"></input>
</div>
<div class="checkbox">
<label>
<input type="checkbox" id="make_private" name="make_private"> Make Private </input>
<input type="checkbox" id="upgrade_to_1080" name="upgrade_to_1080"> Upgrade to 1080 </input>
</label>
</div>
</div>
Expand Down Expand Up @@ -226,7 +224,7 @@
;(new VimeoUpload({
name: document.getElementById('videoName').value,
description: document.getElementById('videoDescription').value,
private: document.getElementById('make_private').checked,
privacy: document.getElementById('videoPrivacy').value,
file: files[0],
token: document.getElementById('accessToken').value,
upgrade_to_1080: document.getElementById('upgrade_to_1080').checked,
Expand Down
3 changes: 2 additions & 1 deletion vimeo-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
api_url: 'https://api.vimeo.com',
name: 'Default name',
description: 'Default description',
privacy: 'anybody',
contentType: 'application/octet-stream',
token: null,
file: {},
Expand Down Expand Up @@ -161,7 +162,7 @@
this.videoData = {
name: (opts.name > '') ? opts.name : defaults.name,
description: (opts.description > '') ? opts.description : defaults.description,
'privacy.view': opts.private ? 'nobody' : 'anybody'
'privacy.view': (opts.privacy > '') ? opts.privacy : defaults.privacy
}

if (!(this.url = opts.url)) {
Expand Down