artis Posted January 28, 2005 Report Share Posted January 28, 2005 Gribu salikt php skriptu, kas uploado uz servera failus ... bet gribu failu tipu ierobezojumus. saliku: .... application/zip application/x-compressed application/x-zip-compressed multipart/x-zip application/rar application/x-rar application/x-rar-compressed compressed/rar ... viss jau buutu ok, bet viens (vairaaki) suuda .rar fails staav kaa briedis un nekustaas man uz to serveri. To suuda .rar`u var uzlaadeet tikai tad, ja pieliek klaat <? ... application/octet-stream .... ?> , bet tas maita laizj cauri gandriiz visu, ko tam padod. Ko variet ieteikt ? Link to comment Share on other sites More sharing options...
рпр Posted January 28, 2005 Report Share Posted January 28, 2005 atkarībā kā tu pārbaudi datus - ar post variabliem vai tad kad jau tas faisl stāv uz servera. ja ar post, tad būs čkars, jo katrs browzers padod to tipu pēc saviem ieskatiem. ff un ie noteikti. Link to comment Share on other sites More sharing options...
Venom Posted January 28, 2005 Report Share Posted January 28, 2005 It īpaši, ja *.rar-i uz klienta datora nav piereģistrēti defaultā vērties vaļā ar winrar-u. $fp=fopen($tmp_upload,'r'); $tmp=fread($fp,4); fclose($fp); if ($tmp!='Rar!') nevajadzētu būt Link to comment Share on other sites More sharing options...
Recommended Posts