Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to upload mp3 file and get its duration in laravel 4.2 #1041

Open
JDamour opened this issue Aug 4, 2016 · 1 comment
Open

how to upload mp3 file and get its duration in laravel 4.2 #1041

JDamour opened this issue Aug 4, 2016 · 1 comment

Comments

@JDamour
Copy link

JDamour commented Aug 4, 2016

I'd like to upload a MP3 file in Laravel and then get the duration of the MP3. Here's my code, but it's not working:

$music_file = Input::file('audio_path');
$file_music = date('Y-m-d-H-i-s')."-".$music_file->getClientOriginalName();
$path = public_path('assets/music/' . $file_music);
$path = $music_file->getRealPath();

@Sjk-Lacoste
Copy link

I managed to upload a song but when i add another input to also add cover image it upload a song as an unreadable file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants