Hi
I have a quick question.
I am creating a form with joomla and chronoforms for my clients to upload some specific txt files.
i am using a couple of file upload boxes
I need certain checks on the file:
1. only .txt ( this i found built in the form ) so okay
but i also need to check 2 more things
1. file name starts with a specific string value
2. the text in the beginning of the file shd match something specific from the DB on my site )
if not files shd not get uploaded and user needs to be prompted accordingly
now i saw functions to read and verify text inside the file and through _FILES can access file name and check it but in case it is wrong how do i stop the file from being uploaded on my server side?
dont want to have it uploaded and then have to delete
thanks for your help
I have a quick question.
I am creating a form with joomla and chronoforms for my clients to upload some specific txt files.
i am using a couple of file upload boxes
I need certain checks on the file:
1. only .txt ( this i found built in the form ) so okay
but i also need to check 2 more things
1. file name starts with a specific string value
2. the text in the beginning of the file shd match something specific from the DB on my site )
if not files shd not get uploaded and user needs to be prompted accordingly
now i saw functions to read and verify text inside the file and through _FILES can access file name and check it but in case it is wrong how do i stop the file from being uploaded on my server side?
dont want to have it uploaded and then have to delete
thanks for your help