MP3 File cannot be uploaded in the deployment

Hello. I am asking regarding my files that is not found when deployed. They are 2 mp3 files inside the src folder.

The thing is, when deployment, the file is nowhere to be found:

and in return, I get 404 on browser. I tried different ways to call the file but it’s not the error because the file is not in the deploy file browser. Please help me.

@naenae00123 You’ll need to provide more information.

How are you deploying? Drag & Drop? Git Repository? CLI?

What are you working with? Can you show your files, or a link to a repository?

The most likely issue is that your files simply aren’t in your Publish directory at deployment:
https://docs.netlify.com/build/configure-builds/overview/#definitions

As it says in the note box in the documentation:

Only files in the publish directory are deployed

Files and assets located outside of the publish directory won’t be included in site deploys.

@naenae00123 Your issue, and the fix, are explained in this thread:

2 Likes

Thank you. I haven’t read the documentation :smiling_face_with_tear: and moving the assets to public folder if it must retain the same exact file name without hashing is the answer. Thank you so much! I wasted a lot of time here. Lmao.

1 Like