I am having a bit of an issue getting the file path from the browser and was hoping that someone could help me out. I do know that in FF3 and Chrome that the file path isn't available as a "security feature". Unfortunately for me I am trying to upload files to the Rackspace Cloud using PHP on the back end and it requires the full filename. I'd like to be able to do this with AJAX instead of submitting the form but haven't been able to find anything. Does anyone know a work around to get this data?
2
-
it requires the full filename? Change you PHP code not to.The Scrum Meister– The Scrum Meister2011-02-16 22:31:27 +00:00Commented Feb 16, 2011 at 22:31
-
a while back I asked the same question, you cannot get the file path. If your third party needs the file path you need to point them at the file upload control.The Muffin Man– The Muffin Man2011-02-16 22:36:51 +00:00Commented Feb 16, 2011 at 22:36
Add a comment
|
1 Answer
Does anyone know a work around to get this data?
There is none. I don't think even Flash based uploaders do this any more. The original location is none of the receiving site's business any more - that is the new rule; you need to change your programs accordingly.
I'd like to be able to do this with AJAX instead of submitting the form
That wouldn't be possible even if you had the full file name - you will not get read access to a local file (barring some new HTML 5 shenanigans that aren't widely supported yet.)