Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. C

    JavaScript Help with Upload javascript

    Thank you very much. I ran the code like this, as instructed: <?php foreach (array('video', 'audio') as $type) { if (isset($_FILES["${type}-blob"])) { $fileName = $_POST["${type}-filename"]; $uploadDirectory = 'uploads/' . $fileName; // make sure that one can...
  2. C

    JavaScript Help with Upload javascript

    Thanks again for your reply. Can you help me figure out "what the extension that your call to pathinfo is returning when you try to upload a file". I believe I posted all the pertinent code.
  3. C

    JavaScript Help with Upload javascript

    Many thanks for your informative reply. I've tried to add some file validation in my php (I added: "// make sure that one can upload only allowed audio/video files" and the next 12 lines), but now when I upload I get this message "Invalid file extension", when the file is webm. Any help with...
  4. C

    JavaScript Help with Upload javascript

    Thanks for your reply. I don't understand this sentence, however: "You want to be renaming on the server, as if someone can just pass in the same filename by editing your code, they can overwrite the file on your server". Can you please clarify?
  5. C

    JavaScript Help with Upload javascript

    Thanks for your reply. Regarding, "file is overwritten, that sounds like a server code problem", I think it's the javascript where each file has this name: WXYZ.webm function uploadFile() { // create FormData var fileType = 'video'; // or "audio" var fileName =...
  6. C

    JavaScript Help with Upload javascript

    Thanks for your reply. It appears to work with this code: function uploadFile() { // create FormData var fileType = 'video'; // or "audio" var fileName = 'WXYZ.webm'; var formData = new FormData(); var request = new XMLHttpRequest...
  7. C

    JavaScript Help with Upload javascript

    Thanks again for your help, this uploads successfully now: function uploadFile() { // create FormData var fileType = 'video'; // or "audio" var fileName = 'ABCDEF.webm'; var formData = new FormData(); var request = new XMLHttpRequest; formData.append(fileType + '-filename', fileName)...
  8. C

    JavaScript Help with Upload javascript

    Many thanks for your kind reply. I see no errors in console. However, in the meantime I have been told "you are sending stream as formdata and in server you are checking it as file, which will not work. You have to parse it from the object or you have send it as a file from ajax", which I don't...
  9. C

    JavaScript Help with Upload javascript

    Here is my latest code: <button id="button1" onclick="startRecording()">Start</button> <button id="button2" onclick="endRecording()">Stop</button> <button id="uploadFile" onclick="uploadFile()">Upload</button> <video id="video" autoplay controls muted playsInline></video> And the JS...
  10. C

    JavaScript Help with Upload javascript

    Much thanks for your reply. After making your suggested change I see: "Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules" Any additional guidance is appreciated
  11. C

    JavaScript Help with Upload javascript

    Thanks for your reply/help. I have added: <button id="fileupload" onclick="fileUpload()">Upload</button> and ran it. In the Console it shows: "Uncaught ReferenceError: fileUpload is not defined at HTMLButtonElement.onclick". Any help with how to define it is welcomed. Thanks again
  12. C

    JavaScript Help with Upload javascript

    Thanks for all of your previous help. I am testing this new code, where video is captured/recorded successfully. However, I don’t have the upload part correct. Nothing happens upon selecting the upload button: <button id="button1" onclick="startRecording()">Start</button> <button id="button2"...
  13. C

    JavaScript Help with Upload functionality

    I am testing this code, where a video is recorded, start, stopped & replayed successfully. However, I don't have the upload part correct. Nothing happens upon selecting the upload button. Here's the code: <div class="nowrap"> <button id="btn-start-recording">Start <br/>Recording</button>...
  14. C

    JavaScript Reduce the dimensions of the full recording mobile screen/view

    This html web page code, when viewed via mobile device, captures video from the mobile device. By tapping the page, the mobile video full screen appears, ready to begin recording. I'd like to find a way to reduce the dimensions of that full screen, if possible. I'm guessing it might need height...
  15. C

    HTML & CSS Possible to add scrolling text across the page/video-camera-screen?

    I resent it to your private messages ("start a conversation"?)
  16. C

    HTML & CSS Possible to add scrolling text across the page/video-camera-screen?

    Hello Mutiny, I would be interested to know if you received my DM
  17. C

    HTML & CSS Possible to add scrolling text across the page/video-camera-screen?

    Thanks for taking the time to view from your phone. Regarding "the video capture window is my phone's default camera app", can that be viewed on a web page in an iFrame, or some other way?
  18. C

    HTML & CSS Possible to add scrolling text across the page/video-camera-screen?

    I have created a link to the page that I'm asking about. Apparently it expires in 6 days. I've never used this temporary file hosting site/service before (tiiny.site), but it looks like it works currently. The html page I'm asking about is at : https://mobileview.tiiny.site/ I look forward to...
  19. C

    HTML & CSS Possible to add scrolling text across the page/video-camera-screen?

    Thank you again for your reply. I really don't know how I'd record my mobile phone screen, for this. You may be right that "the mobile video camera screen may be different from a standard HTML video and may be a part of the "browser chrome" so you wouldn't be able to overlay anything on top of...
  20. C

    HTML & CSS Possible to add scrolling text across the page/video-camera-screen?

    Many thanks for your kind reply. I have tried this: .marquee { width: 100%; height: 400px; position: fixed; left: 0; right: 0; bottom: 0; color: #FF0000; font-size: 25px; font-family: arial, sans-serif; } <div class="container"> <div class="row"> <label class="cameraButton"> <p...
Back
Top Bottom