mutliple ekleri php göndermek için giriş dosyasının tam yolu

2 Cevap

When retrieving the path from the input file, using $_POST, the path is being picture.jpg and I need to have the full path i.e. C:/C:\Documents and Settings...\picture.jpg

ne i kullanmak zorunda mı??

2 Cevap

Ben bir daha bu belirlemek için güvenilir bir yolu yoktur korkuyorum. $_FILES[xyz]["name"] bazı tarayıcılar tarafından birlikte gönderdi, ancak günümüzde çoğu tarayıcı sadece güvenlik nedenleriyle özgün dosya adını göndermek için kullanılan tam yol.

SWFUpload can do this any more: See this forum discussion gibi hatta Flash tabanlı değil uploaders.

you cant. Maybe creating a custom flash/applet that sends it. But not though normal html+php code. You can try to get the value of the 'file' input and add to a 'hidden' something like this:

jQuery('#theform').submit(function(){
   jQuery('#thehidden').val(jQuery('#thefile').val());
   return true;
});

Ama im emin değil, ben bunu ondan dosya yolunu başlayalım tarayıcı güvenliği ve konfigürasyonuna bağlıdır sanırım.