Wednesday, 15 April 2015

How to save a video NSData from an iOS device to php server -



How to save a video NSData from an iOS device to php server -

currently getting nsdata video file ios device. need save on php server. facing little confusion here on whether need create video nsdata or saving nsdata it. guidance needed here on right way.

thanks.

you need upload file in location. follow below code. video should come key 'media'

if(is_uploaded_file($_files['media']['tmp_name'])) { $uploaddir = realpath('./upload/video/'); $fname='';//give file name save extension' $uploadfile = $uploaddir ."/". $fname; if (move_uploaded_file($_files['media']['tmp_name'], $uploadfile)) { $media = 'upload/video/'.$fname; } }

php ios nsdata

No comments:

Post a Comment