SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't Upload multimedia files

    I'm new to php and for sometime now I have been trying to figure out the codes to upload pictures and other multimedia files to my database but could not because all the sample application and code I used are not giving me the desired result. please I need help, can any body out there help me out? because for me I'm stocked. I will need descriptive and extensive code that can meet my need.

  2. #2
    SitePoint Evangelist pompopom's Avatar
    Join Date
    Feb 2004
    Location
    Huldenberg (Belgium)
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe start with posting with what you got already.
    If your using a form to submit/upload your files, chances are your enctype is not correct.
    The Path of excess leeds to the tower of wisdom (W. Blake)

  3. #3
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The reply I do get from running the code is that "the picture cannot be opened because it is either corrupt or contain an invalid format". Please how do you mean by the enctype is not correct. More explanations please.

  4. #4
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,206
    Mentioned
    74 Post(s)
    Tagged
    3 Thread(s)
    Are you trying to save the multimedia object into the database or just the location?

    Post the code for your upload and form into this thread so that people can view what you already have. It will be easier than trying to discuss the code and lead to less confusion.

  5. #5
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have actually tried both method but none worked for me. What do think may be the problem, please help.

  6. #6
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,206
    Mentioned
    74 Post(s)
    Tagged
    3 Thread(s)
    Basicaly from the information you have given I doubt anyone will be able to help you.

    I you are unwilling to post your code I suggest you find a tutorial; start with something very simple and see what happens.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •