mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-29 08:07:59 +01:00
Merge pull request #75 from Poniverse/uploader-dev
Added file upload button
This commit is contained in:
commit
a6188b0373
2 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,10 @@
|
|||
<p>Drop files here to begin your upload!</p>
|
||||
</div>
|
||||
|
||||
<p><b>Having issues with our uploader? Click the button below to upload your files.</b></p>
|
||||
|
||||
<p><input type="file" name="file" onchange="angular.element(this).scope().fileChanged(this)" ng-model="file" multiple /></p>
|
||||
|
||||
<p>Our preferred formats are FLAC, WAV, AIFF, and ALAC (because lossless audio is awesome) but we accept a few others, too. Each file can be up to 200 MB in size.</p>
|
||||
|
||||
<p>Tracks must be a <strong>minimum</strong> of 30 seconds long.</p>
|
||||
|
|
|
@ -18,4 +18,8 @@ module.exports = angular.module('ponyfm').controller "uploader", [
|
|||
'$scope', 'auth', 'upload', '$state'
|
||||
($scope, auth, upload, $state) ->
|
||||
$scope.data = upload
|
||||
|
||||
$scope.fileChanged = (e) ->
|
||||
files = e.files
|
||||
$scope.$apply -> upload.upload files
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue