I'm trying to allow users to upload audio via form and HTTP POST request.
Here is the relevant form code, from my page-profile.php :
<form method="post" action="wp-content/themes/freelanceengine-child/audio_upload.php" enctype="multipart/form-data"> <input type="file" name="file" id="file" accept="audio/*">
But the browser never reaches my php file. I get the following error: The requested resource /profile/wp-content/themes/freelanceengine-child/audio_upload.php was not found on this server.
This profile directory is not in my site anywhere so I don't know why it is being prepended to the URL. I've tried restarted the server and experimenting with different URLs and browsers, but /profile is consistently being prepended.
If you have insight, please help me understand why this is happening. I can probably fix it if I know why it's broken.
On a side note, I assume a plugin would be the best way to do something like this, but honestly I've never worked with wordpress plugins, so I'm just sticking to what I know for now.