Jump to content

Upload image given local machine address

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Feral

Feral

    Programmer

  • Members
  • PipPipPipPip
  • 162 posts
Ok here's the thing, I'm working on a script that parses a csv file and inputs the information into the database. Thats all fine and good and works the way it is supposed to.

The issue is that one of the fields contains a list of images and there local machine address (i.e. c:/mypic.jpg). I have done plenty of file upload scripts for anything that would need to be uploaded but have never come across a way or need to automatically upload an image given its location on the visitors computer.

So my question is, is it even possible to do so and if it is could you explain the steeps needed to do so.

Regards,

Feral

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
you can't access someones on the nets drive and get a file, no. you shouldn't be able to atleast

but if they fill in a multipart form and does that kinda file upload, you will get the file ofcourse.

#3
Feral

Feral

    Programmer

  • Members
  • PipPipPipPip
  • 162 posts
That is pretty much what I figured, but It just seemed a little hackish to put a bunch of pre-filled out upload slots into a hidden layer.

Guess it will have to stay with the user having to include the images in the zip file with the csv file. Oh well