/    Sign up×
Community /Pin to ProfileBookmark

filesize returning 0

the vardump

array(2) { [“front1”]=> array(5) { [“name”]=> string(5) “2.jpg” [“type”]=> string(0) “” [“tmp_name”]=> string(0) “” [“error”]=> int(2) [“size”]=> int(0) } [“back1”]=> array(5) { [“name”]=> string(12) “Untitled.jpg” [“type”]=> string(10) “image/jpeg” [“tmp_name”]=> string(14) “/tmp/phpbc73zG” [“error”]=> int(0) [“size”]=> int(18381) } }

The first file returns int(2) [“size”]=> int(0). It is a 212k size file and I am not sure why this is happening. Is there a bug with in this function? The second one seems to do alright.

Any ideas?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@DARTHTAMPONauthorMay 10.2009 — OK so the HTML MAX_FILE_SIZE seems to not send filesize information over for files that are to large.
×

Success!

Help @DARTHTAMPON spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...