- August 9, 2018 at 12:58 pm #26592
Hi a few questions regarding File Upload elements:
Question 1: No URL
Looking at your getValueHTML() function for File Upload elements I have a question.
Under what circumstance? would a file upload element have no URL?
Question 2: File size
File size attribute is that in bytes? So dividing value by 1024 will give k?
Question 3: File type
Is that MIME type? And how is that determined at time of upload? By extension?
Question 4: Security
If a file type is not in in the included list. Can a user rename file and bypass the check?
Is there a way to protect the files once uploaded? Ie must be logged in to access? Any suggestions?
Thanks againAugust 9, 2018 at 9:09 pm #26602
AllySupport StaffAugust 10, 2018 at 12:07 am #26607
1. Not sure what benefit file upload is without file being uploaded?? My head hurts on this one
2,3. Awesome, the link helps heaps
4. Ok, thought so
5. Was aware of this but didn’t know how it would affect the plugin when saving files. Is it excused from security check?August 14, 2018 at 5:58 pm #26664
AllySupport StaffAugust 14, 2018 at 10:57 pm #26668
Thank you very much for that explanation. Close ticket
You must be logged in to reply to this topic.