Your application uses PHP to accept and process file uploads. It fails to upload a file that is 5 MB in size, although upload_max_filesize is set to "10M". Which of the following configurations could be responsible for this outcome? (Choose 2)
Suggested Answer: B
Get Premium 200-710 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
31 comments · newest first
LI
Linette
1 year ago
I disagree with C, it’s usually server-side settings that matter more.
IL
Ilene
1 year ago
A is definitely a common culprit for upload issues.
KA
Kaitlyn
1 year ago
Surprised to see B listed, that doesn't seem related to file size.
AN
Annamae
1 year ago
I think E is outdated info, PHP can handle larger files now.
JI
Jina
1 year ago
Definitely A and D could be the issue.
VA
Vashti
1 year ago
I vaguely recall that PHP has some limits, but I thought it was more about the server settings than the browser encoding. So, I’m leaning towards A and D.
KA
Katy
1 year ago
I practiced a similar question, and I think the post_max_size setting is crucial, but I’m not confident about the others.
DU
Dustin
1 year ago
I’m not entirely sure, but I feel like the MAX_FILE_SIZE hidden field might limit the upload size too, so maybe option D?
EL
Elise
1 year ago
I remember something about post_max_size affecting file uploads, so I think option A could be a reason.
YO
Yoko
1 year ago
This is a tricky one. I'll need to carefully weigh the pros and cons of each option to determine the best answer.
LI
Linwood
1 year ago
No problem, I've done this before. Just gotta follow the steps carefully.
AJ
Aja
1 year ago
Wait, so he admitted he has an alcohol problem and wants to quit? I'm thinking option C - giving him a leave of absence might help him get treatment.
IR
Irving
1 year ago
I vaguely remember we discussed that one iteration of the process should lead to identifying service candidates, but I'm not entirely sure.
DE
Denny
1 year ago
I feel like this is a trick question. All the options sound similar. Option D seems off, but I'm stuck between A and C.
BI
Billi
1 year ago
Hmm, I'm a bit unsure about this. I know GDPR allows for some exceptions like consent and BCR, but I can't remember if the Safe Harbor Framework is still valid. I'll have to think this through carefully.
VA
Vallie
2 years ago
Haha, E? 4 MB? What is this, the 90s? I'm pretty sure modern PHP can handle much larger file uploads. This exam is trying to trip us up, but we're too smart for that!
HE
Helga
1 year ago
D) The hidden form field MAX_FILE_SIZE was set to a value that is too small
ER
Erasmo
2 years ago
A) The PHP configuration option post_max_size is set to a value that is too small
KI
King
2 years ago
B and C? Really? The web server and browser encoding? That's just a red herring. This is all about the PHP configuration and the form settings. Easy peasy!
SI
Silva
2 years ago
Hmm, I think it's definitely A and D. The post_max_size setting and the MAX_FILE_SIZE form field have to be larger than the file size, or else the upload will fail. Gotta love these trick questions!
DE
Delmy
1 year ago
Angella: Nope, those don't affect the file upload size limit.
LA
Latonia
1 year ago
User 3: So it's not about the web server or browser encoding then?
AN
Angella
1 year ago
User 2: Yeah, those settings definitely play a big role in file uploads.
DE
Delsie
1 year ago
User 1: I agree, post_max_size and MAX_FILE_SIZE need to be larger than the file size for the upload to work.
MA
Marget
1 year ago
Lamar: Nope, those don't affect the file upload size limit.
GE
Geraldine
1 year ago
User 3: So it's not about the web server or browser encoding then?
LA
Lamar
2 years ago
User 2: Yeah, those settings definitely play a big role in file uploads.
TA
Tammara
2 years ago
User 1: I agree, post_max_size and MAX_FILE_SIZE need to be larger than the file size for the upload to work.
HO
Honey
2 years ago
I also think D) The hidden form field MAX_FILE_SIZE could be set too small.
EV
Evelynn
2 years ago
I agree with Brett. It makes sense that the post_max_size could be the issue.
BR
Brett
2 years ago
I think A) The PHP configuration option post_max_size is set too small.