I'm using the iOS API to upload wav files to SoundCloud. There's no problem with the upload, however, when I attempt to download the file on the SoundCloud website the file name is always "unknown". When I upload the same song from my computer the file name matches the title.
There's nothing in the API reference that indicates you can set the download file name, so I assume it's generated from the title. Is this correct? Is there any additional metadata that needs to be set to make this work?
Any insight would be appreciated. Thanks!
When downloading a sound file from the SoundCloud website, the filename the user sees is the one used by the original uploader when they uploaded the sound to SoundCloud.
Related
I'm trying to upload a video using the API. I can successfully authenticate, upload and create a video and receive a video id. But when I query the processing status using https://api.dailymotion.com/video/{VideoId}?fields=status%2Ctitle%2Cpublishing_progress URL, it keeps returning "publishing_progress": 7 no matter how long I wait.
If I try to upload the same video using the website directly it will process it just fine.
I wonder if anyone else has encountered this issue and know how to solve it.
I think there is an issue with the source URL you associated to the video.
Have you correctly filled the URL field at the video creation (STEP 4.) with the URL returned by the API when you uploaded your video (on STEP 3.)?
If so, you would encourage you to contact our support with more details to dig further into possible issues
this is kinda tricky.. let's make this clearer :
I'm using a ruby on rails app as back-end for my mobile application, when i upload a video from my ruby app Dashboard and store it on AWS S3 Storage it works perfectly, and when i retrieve the URL for the video it works as well , the thing when i click it it automatically download the video instead of playing it, i checked the meta data of the object inside my AWS Console it has the ( System defined Content-Type video/mp4 ) but as the attached screenshot show it doesn't recognize it as a video (as type is - as of null )
my response is always as JSON since i use the ruby app for the web services and the dashboard only ( i get the correct response )
PS: the video uploaded manually from the AWS Console plays when u open the link.
this is the difference between the video uploaded using my ruby app and the video uploaded manually which is highlighted in red
Look into how to set S3 Content Disposition with the library you're using. You'll need to probably do this when you're uploading the file, or you might be able to coerce it at request time when generating the link to the asset.
I have the reference of a MPMediaItem when user selects an audio from the iPod library. I am getting the asset url of that item by using
let url = item.valueForProperty(MPMediaItemPropertyAssetURL)
But this is not giving me the exact physical location of the file, instead it is giving me an url w.r.t iPod library.
ipod-library://item/item.mp3?id=1840064795502796074
Is there a way to get the physical url of a song from iPod library?
EDIT - actually I want to extract NSData from the physical file and send it to my backend server, so i need the physical file URL and not the relative URL
Due to copyright protection you can only play songs from music library. You can't access row audio file! But there are some tricks that can help like you can export music because you can do mixing type of stuff and after creating your new edited file you have new copy of your music file and you can send it I thing, but can't send directly from library like you send photo and video! You have to export it with export session first!
Refer this so post for that!
You should refer Apple sample code for that
And this so post and this tutoria also may helpful to you!
I've saved a file locally and want to open it in Word if installed. For example my file's URL is:
file:///var/mobile/Containers/Data/Application/{guid}/Library/Caches/MyFile.docx
My Office URL is:
ms-word:ofe|u|file:///var/mobile/Containers/Data/Application/{guid}/Library/Caches/MyFile.docx|p|my-protocol
When Word launches it says:
The link you clicked on is invalid and the document cannot be opened
However if I feed the original URL to a UIDocumentInteractionController it opens correctly.
Any ideas?
If you pass the URL to Word directly you are attempting to violate your Application Sandbox - Word doesn't have access to your App's directory, so it can't read the file.
You have to use the UIDocumentInteractionController to prompt the user to open the document in Word or you need to store the document somewhere that Word can read it (this would be external to your device - on a cloud store somewhere)
I'm having a hard time trying to figure this out.
I have a button_to that should download a .mp4 movie that is stored on S3 when clicked. Since the audience is very basic, I need that when they click the button the download start right away. No right-click and Save As, just a button to send the file as download instead of open it on the browser.
I tried using send_file only to realize that it works for local files.
Any idea how to do this?
Just solved it using a link_to instead and link directly to the S3 file. Amazon automatically send the file to download instead of open in on the browser. Easier than I thought.
I would recommend just making it be a YouTube video. If you need privacy, make it an unlisted YouTube video.
If that is not an option, you should try to configure S3 to serve the following http header when delivering the file:
Content-Disposition: attachment