Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Other Programming › PHP Programming › php file upload type restriction

php file upload type restriction

Posts 1–6 of 6 · Page 1 of 1
franzyx
franzyx
php file upload type restriction
hi guys i got this quote for php
is supposed to allow all kind of images,text files(.txt) and zip but the zip and txt are not working
any hint ?
what am i doing wrong
thank in advance for any help

if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "application/zip")
|| ($_FILES["file"]["type"] == "image/png")
|| ($_FILES["file"]["type"] == "image/bmp")
|| ($_FILES["file"]["type"] == "text documents/txt")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 8388608))
#1 · 14y ago
NextGen1
NextGen1
Small "Bug" in Chrome (Possibly Firefox as well) - It should work in IE however. Test in IE, let us know.
#2 · 14y ago
franzyx
franzyx
Yeah @NextGen1 your right chrome maybe buggie or something btw i knew that it works on internet explorer but i still see it as not working because i use chrome as my main browser and i guess most ppl do

edit
Hopefully this mime works for chrome for uploading zip files

Code:
($_FILES["file"]["type"] == "application/octet-stream")
#3 · edited 14y ago · 14y ago
NextGen1
NextGen1
Best thing to do it report it to Issue Tracking / Reports. {If it hasn't been reported yet}. There may be some work around{s}.
#4 · 14y ago
Hell_Demon
Hell_Demon
This defies all logic ._. internet explorer having something that doesn't work in chrome/ff? O_O
#5 · 14y ago
franzyx
franzyx
@Hell_Demon i know right
idk somehow i always test my php script using internet explorer first and then try others browser
maybe a bad habbit
#6 · 14y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • ImperialBB <= 2.3.5 Remote File Upload VulnerabilityBy Zodiac1994 in Exploits
    0Last post 18y ago
  • Battlefield 2 and Battlefield 2142 Multiple Arbitrary file uploadBy cruizrisner in Battlefield Hacks & Cheats
    12Last post 16y ago
  • Does anyone know fast file uploader I can use?By Ariez in Art & Graphic Design
    10Last post 17y ago
  • Wow CooL File uploading Site.By tabuzo013 in General
    8Last post 15y ago

Tags for this Thread

None