M
M
Max_Borisov2020-04-17 13:31:24
JavaScript
Max_Borisov, 2020-04-17 13:31:24

Uploading photos and videos Online to the site?

Good afternoon!
The task is next. On the site in the personal account, the user should be able to upload photo / video materials. But the photos and videos must be freshly taken. That is, the user should only have the opportunity to take a photo or video online, and there should not be an opportunity to upload a photo / video from the library.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MifeeX, 2020-04-17
@MifeeX

There are many answers on this topic on google. The simplest thing is not to add buttons with a type for files, but to make a request to the camera with a javascript.
There is an example for "selfie" on js'e.
https://ruseller.com/lessons.php?rub=32&id=2756

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question