Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 530765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:13:51+00:00 2026-05-13T09:13:51+00:00

Im working with a friend to recieve image uploads from his C# program to

  • 0

Im working with a friend to recieve image uploads from his C# program to my php script. Hes sending the form data and image as an HTTP POST method.

The text comes through fine, but when the image comes through, it doesnt show up in $_FILES, but in $_POST.

when i print_r $_POST and he submits, he gets this…

Array
(
   [dbto] => sometext
   [blurb] => somemoretext
Content-Disposition: file; name="userfile"; filename="picture.png"
Content-Type: IMAGE/PNG

?PNG

Then his app crashes. I read something about a possible bug in php when handling this kind of transaction, something about the way the data is being sent.

Any ideas if this is a known issue or something i can do on my side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:13:51+00:00Added an answer on May 13, 2026 at 9:13 am

    if the sender can’t encode it properly, then you can receive it by opening and reading ‘php://input’:

    $fp = fopen('php://input');
    //or
    $file = file_get_contents('php://input');
    

    (if the POST is encoded though, this won’t work)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've merged a master branch from a friend's repository into my working directory into
My friend is working on a project in which he needs to get some
I'm working on a project with a friend that will utilize Hbase to store
A friend and I are working on a project where we're required to build
I'm working with a friend on a web application we'd like to distribute and
I was working with a friend on a project, and he edited a bunch
My friend and I are working on a project for distributed KD-tree with applications
For a recent project a friend of mine and I have been working on,
http://www.twofivefivefive.com/asctest/ I am helping a friend with this site, and it is a fluid,
I'm working on writing a kernel, and I have a few friends working with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.