Raised This Month: $ Target: $400
 0% 

force_unmodified(force_exactfile


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bol
Member
Join Date: Feb 2014
Old 05-29-2014 , 08:55   force_unmodified(force_exactfile
Reply With Quote #1

hi

Is it possible to check a clients file against two different versions?
PHP Code:
force_unmodified(force_exactfile, {0,0,0}, {0,0,0
If not what are my limitations? for example from the two different versions, if date modified is the same and file size is the same to the 000.000 byte is there someway the server could allow both till this criteria but not anything else?

Last edited by bol; 05-29-2014 at 09:00.
bol is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-29-2014 , 10:33   Re: force_unmodified(force_exactfile
Reply With Quote #2

unfortunately there's already been a thread about something similar and there are several limitations of this function
the worst is probably that as soon as it detects an inconsistent file, it disconnects the user and doesn't check for the rest of the files, and you can't work around it without tapping the engine

also it's not possible to check the file against two versions, because the only param the function has is which file to check, not also which file to check it against, so by default it looks for the same file with the same name / extension on the server then checks
aron9forever is offline
bol
Member
Join Date: Feb 2014
Old 05-29-2014 , 12:52   Re: force_unmodified(force_exactfile
Reply With Quote #3

thats too bad, does it use a md5hash or something or just memory cache? theres no margin I can set to filesize must be between this many bytes?
bol is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-29-2014 , 13:34   Re: force_unmodified(force_exactfile
Reply With Quote #4

Quote:
Originally Posted by bol View Post
thats too bad, does it use a md5hash or something or just memory cache? theres no margin I can set to filesize must be between this many bytes?
no, the only customizations it allows is for models only and it's related to their size(not filesize)
aron9forever is offline
bol
Member
Join Date: Feb 2014
Old 05-29-2014 , 14:56   Re: force_unmodified(force_exactfile
Reply With Quote #5

Ok no problem. would of been great if it let me set some rules but gotto work with what you got
bol is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode