0

anyone can explain file upload process in PHP. I mean what happens in backend internally.

like saving with temp name, moving to upload folder etc.

I want it's step by step working.

Thanks

4
  • 1
    What do you mean by "backend" exactly? Commented Oct 25, 2010 at 10:04
  • 1
    Good question. I don't quite understand it myself. It seems like a web-server do receive POST data, and then call PHP. PHP core some prepdocessing (decode MIME parts, save file into temporary location) and then user php code being called. Commented Oct 25, 2010 at 10:13
  • yes backend. like temp name, moving to upload folder etc. Commented Oct 25, 2010 at 11:16
  • lol it's not a backend :) it's usual upload you are asking for. just follow first Gordon's link and accept his answer. Commented Oct 25, 2010 at 15:06

1 Answer 1

3

How to do file uploads is explained in the PHP Manual:

Please go through these chapters to learn how to do uploads.

If you want to know how File Uploads are implemented in the PHP core, check out

Afaik, this is the module that handles this.

If none of the above do give you the information you are looking for, please refine your question to indicate what is missing.

Sign up to request clarification or add additional context in comments.

1 Comment

May be I am wrong, but there is nothing of PHP internals, e.g. when and how MIME data being decoded, etc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.