Is it possible within wordpress to retrieve the original upload path of a media? For example, the user uploaded from C:\pictures\holidays2014\image1.jpg. I want this path, not the created path after the upload.

Edit: Rephrased the question.

  • In what context?
    – s_ha_dum
    Apr 17 '14 at 13:15
  • I believe that OP means php basically or a wordpress method. Apr 17 '14 at 23:50
  • I want to retrieve the string of the path and use the names of the folders. But I am not sure if the browser of the user gives this information or just send the files.
    – Thanassis
    Apr 17 '14 at 23:51
  • Ah, path on client computer. I am pretty sure this is impossible with normal upload process.
    – Rarst
    Apr 18 '14 at 10:22

get_attached_file() can do this, given you know attachment ID for input.

  • Question was updated. OP accepted my rephrase. Apr 17 '14 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.