Adding a image to a existing file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #16
    Originally posted by panhandle
    Did the modifications-all went well except it does not display my image when downloaded. Is it because it is set to "text"
    Code:
    GetSQLValueString($_FILES['file']['tmp_name'], "text"),
    Nope, it's because you're saving the tmp_name string. You need to access the data that the tmp_name refers to - like Atli does on line 18 (second code) of his tutorial.

    Code:
    GetSQLValueString( file_get_contents ( $_FILES['file']['tmp_name'] ), "text" ),

    Comment

    • panhandle
      New Member
      • Feb 2009
      • 10

      #17
      That did the trick----Thanks For all the help

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #18
        No problem, friend (from us all).

        - Markus.

        Comment

        Working...