Skip to content

Not Receiving $_FILE in PHP #64

@teamcoltra

Description

@teamcoltra

To be honest, I am an idiot on how $_FILE actually works but it seems as though the code only sends the raw file to PHP and doesn't send it like normal files arrive when I use a standard HTML form.

I have seen other questions about this like on http://stackoverflow.com/questions/25698444/filedrop-js-php-resulting-in-empty-files

There is a solution there that DOES work but it doesn't really fit the system that I have already built. I am not sure how to properly ask the question, but is there a way to get the files to respond how they would if I was to submit this form:

<form action="index.php" method="post" enctype="multipart/form-data">
	<input type="file" name="test[]" id="test" multiple>
	<input type="submit" value="Upload Image" name="submit">
</form>

I am not asking you to implement the feature, per-se just wondering if I am doing something wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions