Sometimes we cannot use videos on a social platform. The platform only allows the selection of photos and not videos from the camera roll.

How are they doing this and would it be possible to create an app that technically selects only photos but in reality uploads a video?

Or is this simply not doable since the server would reject it?

  • Media has metadata associated with it, including most obviously filenames. It's fairly trivial to add a few checks for this - do you mean something more sophisticated? – enderland Sep 26 '16 at 22:19
  • Yeah I did but it's ok. I'm not sure why this question was down voted since this is an exchange for fairly 'vague' questions. If this is TOO vague what exchange can I ask vague programming questions? – tem Sep 26 '16 at 22:33
  • It seems like you are asking if you can create an app that would circumvent the requirements of the social platform and allow you to upload video's to a section designed to take photo's only, is that right? If so - the answer depends entirely on the architecture of the social platform in question - you can do so only if they have poorly implemented validation. – Chris O'Kelly Sep 26 '16 at 23:05
  • Thanks. Yeah it wouldn't get through most platforms like FB IG WeChat :) – tem Sep 27 '16 at 0:16

In order for a social platform to successfully display a media file (such as a picture or video), it must first identify what type of file it is. Once it knows that, it can reject the file if it expects an image file but you provided it a video file instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.