Create Asset FTP Usage

8 views
Skip to first unread message

Kevin

unread,
Nov 18, 2010, 8:44:03 PM11/18/10
to Sorenson Media Developer Group
Does anyone have any experience with creating assets and using the FTP
method?

I am providing the following information (obviously not the real
values):

uri = ftp://myserver.com/video.mpg
username = sore...@myserver.com
password = sorenson123

Is this correct? I seem to keep getting a 530 error. Is the FTP server
expected to be in a particular mode?

Any help would be great. Also I am using a ColdFusion application
server.

David Dudas

unread,
Nov 18, 2010, 10:41:20 PM11/18/10
to sorenson-med...@googlegroups.com
Kevin,

Try taking the file name out of the URI. I think you're supposed to use the source_file_name parameter for that and the URI is just your server name and path.

-David
(sent from iphone)

abruno

unread,
Nov 18, 2010, 11:45:07 PM11/18/10
to Sorenson Media Developer Group
Hi Kevin:

Here is an example curl command to create an asset (ftp):

curl -s -i http://360services.sorensonmedia.com/assets -X post -u
<account_id>:<token> -d
'source_file_name=video_name.mp4&display_name=some_video&description=video
encoded by Squeeze&author_name=kevin&source_uri=ftp://
ftpusername:ftppa...@ftp.ftpdomain.com/path/to/fille/
video_name.mp4&source_uri_username=ftpusername&source_uri_password=ftppassword'

You can retrieve the account_id and token with this curl command:

curl -s -i http://360services.sorensonmedia.com/sessions -X post -u -d
'username=<your_user_name>&password=<your_password>'

Please note how we form the source_uri for the ftp.

Let me know if this helps.

Ana


On Nov 18, 5:44 pm, Kevin <klin...@gmail.com> wrote:
> Does anyone have any experience with creating assets and using the FTP
> method?
>
> I am providing the following information (obviously not the real
> values):
>
> uri =ftp://myserver.com/video.mpg
> username = soren...@myserver.com

Kevin

unread,
Nov 19, 2010, 3:13:01 PM11/19/10
to Sorenson Media Developer Group
Thanks Ana, that helped a lot. Seem the solution was to include the
username and password on the URI. However when doing so I encountered
an error. Later I was able to figure out the issue was with the @ sign
that is contained within the username (has to be there for our FTP
server setup). The solution was to simply to replace the @ sign with
%40 when used on the URI. For future reference the solution for me
was:

1) Place username and password on URL: "username:password@server/blah/
blah.mpg" (obviously ftp:// should be at beginning, left off so google
group doesn't try to make a link out of it)
2) When username has @ contained within it, replace with %40 when used
in URL
3) KEEP the @ sign in the username when being passed via POST as the
source_uri_username variable

aportoca

unread,
Nov 19, 2010, 3:42:55 PM11/19/10
to Sorenson Media Developer Group
Hi Kevin:

I am glad to hear you solved the issue. We really appreciate your
input and will make a note about your finding.

Let me know if you need anything else.

Ana

David Dudas

unread,
Dec 1, 2010, 1:00:41 PM12/1/10
to sorenson-med...@googlegroups.com
The documentation for Create Asset has been updated:





--
Check out Sorenson Media Developer docs, videos and articles at
http://developers.sorensonmedia.com

You received this message because you are subscribed to the Google
Groups "Sorenson Media Developers" group.
To post to this group, send email to
sorenson-med...@googlegroups.com
To unsubscribe from this group, send email to
sorenson-media-dev...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sorenson-media-developers?hl=en

Reply all
Reply to author
Forward
0 new messages