251 Posts
Viktor Iwan
11 years ago
2
Topic
Hello Guys,
i just had this problem...

i build a "work submission" content type.. it has an "upload file" field. I restrict the upload file to 5mb.. and set it to required...but everytime i submit with a large attachement >5mb.. the content saved, and the upload file is not ...

Any idea to reject form submission when upload file > 5mb ?
Get a Book for SEBLOD
251 Posts
Viktor Iwan
11 years ago
1
Level 1

After looking at the source code and 'guessing' on the process flow, i think with current of seblod version, it is imposible to reject the form submission during maximum file size.. i really hope i'm wrong...

At the moment, i manage to solve this by doing a little hack.. so at the moment i don't mark this thread as "Solved" yet

11 years ago
0
Level 2

Probably not an ideal solution and I'm sure you've tried this this but you could always restrict size through the media manager I suppose, or adjust your php.ini file on the server for file uploads but seems like the solution you had set should work. Weird bug there. I'm not sure if the solutions I presented would actually reject the form still but thought I'd add.

Get a VIP membership