V
V
VVS102020-05-17 12:56:19
Web development
VVS10, 2020-05-17 12:56:19

How to upload large mp3 files to the site?

Hello!

I have a project in which I want to upload music (mp3), the duration of the tracks is more than 2 hours. So that by clicking on the play everything is quickly reproduced. Files weigh a lot even after compression, more than 100mb

The essence of the question:

How to load large mp3 files into a project correctly?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2020-05-17
@loonny

I would advise uploading to a third party server, and using Blob technology .

S
Sergey Pankov, 2020-05-17
@trapwalker

Well, who makes questions like that, damn it!?

project where I want to upload music (mp3), the duration of the tracks is more than 2 hours.

"Download" - does this mean a one-time action? Through FTP rsync will not work? Or is it the users who will "download" such hefty tracks?
So that by clicking on the play everything is quickly reproduced

So what's the point, is it fast to play or upload to the site?
Sometimes it's a download, sometimes it's an upload. Please clarify what the question is. Or are there two questions?
If the action is one-time, then you can upload tracks as you like. This is done by some knowledgeable specialist, and the download will still last no faster than the Internet channel passes.
If the upload is from users, then they answered above, you need to display normal progress and you will not increase the speed, since it is limited by the bandwidth of the channel.
If we are talking about download for users, then make sure that your web server supports and is configured to resume downloading files from an arbitrary location. Then playback on the page can be started without waiting for the full download.
However, be careful, it happenssuch an attack .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question