I have a question about uploading the node js file - node.js

I'm going to upload the file through node js There are many ways to upload image files on the Internet. However, there is no way to upload video files or voice files. Is uploading such video files or voice files the same as image files? Do I just put the voice file or video file in the space where the image file goes?

Related

Downloading file in mernstack from mongodb

I have uploaded the file to MongoDB and stored it in my upload folder in my project and its schema is in MongoDb with multer library. Now I want to download that file. How can I do that?
below are my files in my upload folder. I want to download all of them simultaneously.

Play Audio File Stored in AWS S3

I have successfully uploaded some audio files via Nodejs to AWS, the file url is also returned from my function. I plan to save this url in MongoDB Atlas as a reference to the original file but before doing that, I tried to play the file (from the url) in my mobile app and it won't play.
The file is in .m4a format. How do I get this to work in any audio player for mobile and web? I'm using flutter for both. I don't want to do piping, chunking and streaming manually as this is just a dummy test of the system. The original files to be used in the app will be much larger.
Here's the file url https://empty-bouquet.s3.af-south-1.amazonaws.com/Dax+-Dear+God.m4a.
Thanks
.m4a audios aren't natively streamed from S3, but after a test I can verify that .mp3 files are. Most browsers will recognize that filetype and render a built-in player for you.
You can convert from one format to another using a lot of free tools. I used Audacity.
And yes, you need to make at least the file public. Or if you're going to do this a lot I would recommend making a bucket policy that makes everything public, no matter what you throw in there.

Directly download the output file to client desktop

I am processing a video file using ffmpeg, in AWS lambda. My file size is 1gb. I don't want to store the processed file in /tmp folder (or efs).
Is there a way I can directly download the output file to the user's desktop, from AWS lambda?

Google Cloud Storage: M4A audio files: Won't play in console when uploaded using gsutil

I store M4A audio files on GCS. When uploading the files manually from the GCP Console, the file type on GCS is x-m4a and you can click on the file and play it (if it's small enough). If I upload the same file using gsutil cp, however, the resulting file type is mp4a-latm and, if you click on it, GCS doesn't offer the audio player widget. The files are the same size. I run gsutil on a Mac Catalina. I'd like to use gsutil and play the audio in the Console. Anyone knows why the difference and how to adjust gsutil's behavior? Many thanks Example: two different types on GCS; this is the same file on my laptop

meteor: how to upload whole folder using collectionFS?

im trying to upload folder to the server and keep the structure of the folder in the server using collectionFS and filesystem.
Are there any ways to do this?

Resources