• Resolved jimmyt1988

    (@jimmyt1988)


    Hi there,

    I am making a custom plugin where I can get a user to browse for an image and then upload it into my plugin folder sub folder ‘upload’.

    At the same time, I will be pasting the src of the image into a database so it can be referenced wherever it may be needed.

    Thing is, I’m finding it hard to get the file uploaded and the file information uploaded into the database.

    any ideas?

    here’s the code: http://pastebin.com/D9pmuMhm
    edit – latest code: http://pastebin.com/tB2wT1Em

    Really quite desperate now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jimmyt1988

    (@jimmyt1988)

    Am I even close to doing it right?

    I cannot get any of my echo’s to work so I can atleast see where It is going wrong.

    The submit button just refreshes the page.

    Thread Starter jimmyt1988

    (@jimmyt1988)

    Ok, my script doesn’t work because i’m being a n00b and i called my submit button “submit” whereas the php was referring to it as “Submit”. I’ll leave open because I’m not sure if i’m going to be ok.

    also had some other silly things like that.
    But im also running this off of local machine..

    HELPFUL TO KNOW: if running from LOCAL server, you have to use full file path rather than its localhost server alias of http://localhost

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘custom plugin. upload to a folder’ is closed to new replies.