HttpRequest::addPostFile
(PECL pecl_http >= 0.10.0)
HttpRequest::addPostFile — Yeni bir POST dosyası ekler
Açıklama
public
bool HttpRequest::addPostFile
( string $isim
, string $dosya
[, string $içerik_türü = "application/x-octetstream"
] )
POST isteğine bir dosya ekler, bunu yaparken evvelce eklenmiş dosyalara dokunmaz.
Sadece POST istekleri ve özel istekler etkilenir. Ham post verisi ile birlikte kullanılamaz.
Değiştirgeler
- isim
-
Form elemanının adı.
- dosya
-
Dosyanın yolu.
- içerik_türü
-
Dosyanın içerik türü.
Dönen Değerler
Başarı durumunda TRUE döner. Akse takdirde, eğer içerik türünün birincil ve ikincil parçaları yok gibi görünüyorsa FALSE döner.
HttpRequest::addPostFile
There are no user contributed notes for this page.
