https://files.fm/

Submitted URL:
https://files.fm/
Report Finished:

The outgoing links identified from the page

JavaScript Variables · 292 found

Global JavaScript variables loaded on the window object of a page, are variables declared outside of functions and accessible from anywhere in the code within the current scope

Console log messages · 2 found

Messages logged to the web console

HTML

The raw HTML body of the page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html id="adaptive_html" lang="EN"><head>
<meta charset="UTF-8">
<meta name="globalsign-domain-verification" content="WVoCXGP9WWz7ZO3hqGZASmZCYQ2jhO7WxIRwsepEgV">
<meta name="theme-color" content="#ffffff">
<meta name="facebook-domain-verification" content="nikti9bu56gz5oi6d126k5bloj0772">
<title>File upload &amp; sharing. Send large photos and videos. Online cloud storage.</title>
<meta name="keywords" content="ftp file upload, file hosting, android, file cloud, cloud storage, file sharing, failu glabāšana, bilžu hostings, bilžu apmaiņa, failu apmaiņa, failu serveris, failu koplietošana, failu rezerves kopijas, failu backup, file hosting, file sharing, file exchange, file storage, image hosting, file upload, files, file share, web file hosting, internet file storage, image upload, free upload, photo sharing, online photo gallery, photos online, data backup, online backup">
<meta property="og:title" content="File upload &amp; sharing. Send large photos and videos. Online cloud storage.">
<meta property="og:description" content="File upload &amp; sharing. Cloud file storage. Store, Share, Send or Sell your files, photos, videos, music and docs. Free signup.">
<meta name="description" content="File upload &amp; sharing. Cloud file storage. Store, Share, Send or Sell your files, photos, videos, music and docs. Free signup.">
<meta property="og:image" content="https://files.fm/images/meta_share/files-meta-1200-2x.png">
<meta property="og:image:secure_url" content="https://files.fm/images/meta_share/files-meta-1200-2x.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://files.fm/images/meta_share/files-meta-1200-2x.png">
<meta property="twitter:image" content="https://files.fm/images/meta_share/files-meta-1200-2x.png">
<meta property="og:url" content="https://files.fm">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Files.fm">
<meta property="fb:app_id" content="303254966461402">
<link rel="canonical" href="https://files.fm/">
<link rel="alternate" hreflang="x-default" href="https://files.fm/">
<link rel="alternate" hreflang="en" href="https://files.fm/">
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="">
<link rel="preconnect" href="https://files.fm" crossorigin="">
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin="">
<link rel="preconnect" href="https://www.googleadservices.com" crossorigin="">
<link rel="preconnect" href="https://googleads.g.doubleclick.net" crossorigin="">
<link rel="preconnect" href="https://stats.g.doubleclick.net" crossorigin="">
<link rel="preconnect" href="https://www.google.com" crossorigin="">
<link rel="preconnect" href="https://www.google.lv" crossorigin="">
<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-H8LJ280FZW&amp;l=dataLayer&amp;cx=c"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=AW-1043031755&amp;l=dataLayer&amp;cx=c"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=UA-1970559-6&amp;l=dataLayer&amp;cx=c"></script><script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-EFZ32Z07VR&amp;l=dataLayer&amp;cx=c"></script><script async="" src="//analytics.files.fm/matomo.js"></script><script>
	
    var _paq = window._paq = window._paq || [];
    
    _paq.push( [ 'trackPageView' ] );
    _paq.push( [ 'enableLinkTracking' ] );
    
    (function()
    {
        var u= '//analytics.files.fm/';
        
        _paq.push( [ 'setTrackerUrl', u + 'matomo.php' ] );
        _paq.push( [ 'setSiteId', '1' ] );
        
        var d = document;
        var g = d.createElement( 'script' );
        var s = d.getElementsByTagName( 'script' )[ 0 ];
        
        g.async = true;
        g.src = u + 'matomo.js';
        s.parentNode.insertBefore( g, s );
    } )();

</script>
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-1970559-10"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  
    
  gtag('js', new Date());
  
    gtag('config', 'UA-1970559-10');

    gtag('config', 'UA-1970559-6');
  
    
    gtag('config', 'AW-1043031755');
  
</script>
<script src="/js/google_conversion.js?v=4"></script>
<base href="https://files.fm/">
<meta name="verify-v1" content="4MHpv5CF+UNp34oMIZOxnVwoSslLpr+5GPkxFp94Wq8=">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="all" href="/css/reset.css?v=1715343650"><link rel="stylesheet" type="text/css" media="all" href="/css/global.css?v=1722490362"><link rel="stylesheet" type="text/css" media="all" href="/css/header.css?v=1728475221"><link rel="stylesheet" type="text/css" media="all" href="/css/messages/messages.css?v=1715343651"><link rel="stylesheet" type="text/css" media="all" href="/ts/chat/dist/chat.css?v=1715343647">
<script src="/js/jquery-1.12.2.min.js?v=1715343643"></script>
<script src="/js/jquery-migrate-1.3.0.js?v=1715343643"></script>
<script src="/js/JSON/cycle.js?v=1715343642"></script> <script src="/error_handler_client?v=4"></script>
<link rel="icon" type="image/png" href="/images/logo/rebranded/favicon-192x192px.png?v=2">
<link rel="icon" type="image/svg+xml" href="/images/logo/rebranded/favicon-192x192px.svg?v=2">
<script>

				var DOMAIN_NAME = 'files.fm';
				
				var HTTP_HOST = 'files.fm';
				var IS_DEV_SERVER = false;

				// capitalize first letter of domain
                DOMAIN_NAME = DOMAIN_NAME.charAt(0).toUpperCase() + DOMAIN_NAME.slice(1);

				var lang_code = 'EN';

				var DOCUMENT_IS_LOADED = false;

				var MMVD = false;
				var STDT = new Date().getTime();

				var WEB_ROOT_PATH = '';

				var FB_APP_ID = '303254966461402';

				var strTranslation_LinkCopied = 'Link copied to memory';

				var strSellFilesCurrency = 'USD';

				$(function(){

					DOCUMENT_IS_LOADED=true

                    var intScrollTop = $('html').scrollTop();
                    var intFlagHeight = $('body').hasClass('show_header_flag') ? 20 : 0;
					intScrollTop = Math.max(intScrollTop, $('body').scrollTop());
					
                    if ( intScrollTop > 0 )
                    {
                        $('body').addClass('scrolled');
                    }
                    
                    var intPrevScrollPos = intScrollTop;
                    var objHeaderElem = document.getElementById("header");
                    
                    $(window).on('scroll', function () {
                        //close side menu
                        $( '#navbar-toggler-chb' ).prop('checked', false);
                        $( '#header' ).css('z-index', '');

                        var intScrollTop = $('html').scrollTop();
                        intScrollTop = Math.max(intScrollTop, $('body').scrollTop());
                        
                        if ( intScrollTop > 0 )
                        {
                            $('body').addClass('scrolled');
                        }
                        else
                        {
                            $('body').removeClass('scrolled');
                            checkMenuItems();
                        }

                                                    /* Switch between top and bottom menu */

                            var intHeaderPositionTop = '';
                            if($('#popup_form:visible').length)
                            {
                                var intHeaderPositionTop = $('#popup_form:visible').height() + 'px';
                            }
                            
                            var intCurrentScrollPos = intScrollTop;
                            if(intScrollTop > 0 && window.innerWidth <= 620 )
                            {
                                if ($('html')[0].style.position === 'fixed') //fix for iOS, dont allow scroll if popup is open
                                {
                                    return;
                                }
                                if (intPrevScrollPos > intCurrentScrollPos && intCurrentScrollPos < 150)
                                {
                                    objHeaderElem.style.top = "-55px";
                                    objHeaderElem.style.bottom = "-55px";
                                    
                                    $('#header').addClass('overflow-hidden');
                                    setTimeout(()=> {
                                        var bolResetAllItems = false;
                                        if ( objHeaderElem.classList.contains('bottom-styling'))
                                        {
                                            bolResetAllItems = true;
                                        }
                                        objHeaderElem.classList.remove("bottom-styling");
                                        objHeaderElem.style.top = intHeaderPositionTop;
                                        $('#mega-menu, #mega-menu-close').css('top', 55 + parseInt(intHeaderPositionTop) + intFlagHeight)
                                        $('#mega-menu-close').css('height', '');
                                        objHeaderElem.style.bottom = "";
                                        checkMenuItems(bolResetAllItems);
                                    }, 300);
                                }
                                else
                                {
                                    if( ! objHeaderElem.classList.contains('bottom-styling') )
                                    {
                                        objHeaderElem.style.top = "-75px";
                                        objHeaderElem.style.bottom = "-75px";

                                        $('#header').addClass('overflow-hidden');
                                        setTimeout(()=> {
                                            objHeaderElem.classList.add("bottom-styling");
                                            $('#mega-menu, #mega-menu-close').css('top', parseInt(intHeaderPositionTop))
                                            $('#mega-menu-close').css('height', 'calc(100% - 75px - '+intHeaderPositionTop+')');
                                            objHeaderElem.style.top = "";
                                            objHeaderElem.style.bottom = "";
                                            checkMenuItems();
                                        }, 300);
                                    }
                                }
                            }
                            intPrevScrollPos = intCurrentScrollPos;
                                            });

					$( document ).mousemove( function( event )
					{
						if ( ! MMVD )
						{
							if ( ( ( new Date().getTime() ) - STDT ) > 1000 )
							{
								MMVD = true;
							}
						}
					});
				});


				function changeLanguage(strLangCode, strTitle)
				{
					var strUrl = '';
					switch (strLangCode)
					{
						case 'lv':
                            strUrl = 'https://failiem.lv/';
                            break;
						case 'en':
                            strUrl = 'https://files.fm/';
                            break;
						case 'ru':
                            strUrl = 'https://ru.files.fm/';
                            break;
						case 'de':
                            strUrl = 'https://de.files.fm/';
                            break;
						case 'fi':
                            strUrl = 'https://fi.files.fm/';
                            break;
                        case 'es':
                            strUrl = 'https://es.files.fm/';
                            break;
                        case 'ko':
                            strUrl = 'https://ko.files.fm/';
                            break;
                        case 'uk':
                            strUrl = 'https://ua.files.fm/';
                            break;
					}
                    gaev('HeaderClick', 'Lang_switch', strLangCode);
					window.location = strUrl + WEB_ROOT_PATH;// + '?lng='+strLangCode;
					$('.language_dropdown .activator SPAN').each(function (){
						var img = $('IMG', this).clone();
						$(this).html(strTitle + ' ').append(img);
					});
					hidePopups();
				}


				function gaev(strCategory, strAction, strLabel, strValue) {

					if (typeof gtag != 'undefined') {
						// old ga.js
						//_gaq.push(['_trackEvent', strCategory, strAction, strLabel]);
						
						// Send the event to the gtag.js Google Analytics property
						// with tracking ID GA_MEASUREMENT_ID.
						gtag('event', 'Events', {
						  'event_category': strCategory,
						  'event_action': 	strAction,
						  'event_label': 	strLabel,
						  'value':			strValue
						});
						
						/*gtag('event', 'strEveryEventTest', {
						  'send_to': 'UA-1970559-10',
						  'event_category': 'EveryEvent',
						  'event_action': 	'TestAction',
						  'event_label': 	'TestLabel'
						});*/

					};
					
					
					if ( typeof _paq != 'undefined' )
					{
						_paq.push( [
							'trackEvent',
							strCategory ,
							strAction ,
							strLabel ,
							strValue
						] );
					}
				}
				
				function logClick(strButton)
				{
										if (typeof gtag != 'undefined')
					{
						//_gaq.push(['_trackEvent', 'ActionLine', strButton, 'List']);

						gtag('event', 'Clicks', {
						  'send_to': 'UA-1970559-10',
						  'event_category': 'ActionLine',
						  'event_action': 	strButton,
						  'event_label': 	'List'
						});
					};
									}


				function printAdwordsConversion(strIframeName) {

					var  iframe = document.createElement('iframe');
					iframe.style.width = '0px';
					iframe.style.height = '0px';
					document.body.appendChild(iframe);

					iframe.src = 'https://files.fm/server_scripts/google_adwords/'+ strIframeName +'.php';
				}

			</script>
<script>
				var IS_MOBILE = false;
			</script>

<!--[if lt IE 9]>
				<script type="text/javascript" src="./js/html5.js"></script>
				<script type="text/javascript" src="./js/css3-mediaqueries.js"></script>
			<![endif]-->
<script>  	var tb_lang = new Object();  	tb_lang["close"] = "Close";  	tb_lang["or_esc_key"] = "or press the Esc key";  </script>
<script>

				Math._round = function(number, precision)
				{
					precision = Math.abs(parseInt(precision)) || 0;
					var coefficient = Math.pow(10, precision);
					return Math.round(number*coefficient)/coefficient;
				}

				function file_size_format (filesize, intPrecision, bolShowBits=false )
				{
					if ( bolShowBits )
					{
						filesize = filesize * 8;
					}
				    
				    if (typeof(intPrecision) == 'undefined' || intPrecision==null)
				        intPrecision = 2;
				    
					if (filesize >= 1073741824)
					{
						filesize = Math._round(filesize / 1073741824, 2).toFixed(intPrecision) + '&nbsp;G';
					}
					else
					{
						if (filesize >= 1048576)
						{
							filesize = Math._round(filesize / 1048576, 2).toFixed(intPrecision) + '&nbsp;M';
						}
						else
						{
							if (filesize >= 1024)
							{
								filesize = Math._round(filesize / 1024, 0).toFixed(intPrecision) + '&nbsp;K';
							}
							else
							{
								filesize = filesize.toFixed(intPrecision) + '&nbsp;';
							};
						};
					};
					
					if ( bolShowBits )
					{
						filesize += 'bits';
					}
					else 
					{
						filesize += 'B';
					}
					
					return filesize;
				};

			</script>
<script>
    /**
     * @param strEmails - one or more emails delimited with ","
     * @param bolIsSingleEmail - is strEmails only one email
     */
    function EmailValidator(strEmails, bolIsSingleEmail)
    {
        this.state = EmailValidator.states.READY;
        this.strSuggestedEmails = "";
        this.strEmails = strEmails.trim();
        this.strNoMxEmails = "";
        this.strInputID = "";
        this.bolIsSingleEmail = bolIsSingleEmail;

        // set default invalid cb
        this.setOnInvalidCB(function(){});
        this.strErrorClass = "has-error";
    }
    
    EmailValidator.regexTest = function(email) 
    {
        var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
        
        return re.test( email )
            // disallow single quotes
            && email.indexOf( "'" ) === -1;
    };
    
    //<editor-fold desc="Setters">
    /**
     * this.onValidCB and this.onInvalidCB and this.setOnSuggestionCB execution order:
     *  1. remove this.strErrorClass from this.strInputID
     *  2. show or hide modal - only for onInvalid and onValid
     *  3. run callback
     */
    EmailValidator.prototype.setOnValidCB = function (onValidCB)
    {
        this.onValidCB = applyTo(this, function ()
        {
            if (this.strModalID && $('#' + this.strModalID).css('opacity') == 0)
            {
                showModal(this.strModalID);
            }
            this.removeClassFromInput();
            onValidCB();
        });

        return this;
    };
    EmailValidator.prototype.setOnInvalidCB = function (onInvalidCB)
    {
        this.onInvalidCB = applyTo(this, function ( strInvalidEmails)
        {
            if( typeof strInvalidEmails === 'undefined' )
            {
                strInvalidEmails =  '';
            }
            
            if (this.strModalID && $('#' + this.strModalID).css('opacity') == 0)
            {
                showModal(this.strModalID);
            }
            this.addErrorClassToInput();
            onInvalidCB(strInvalidEmails);
        });

        return this;
    };
    EmailValidator.prototype.setOnSuggestionCB = function (onSuggestionCB)
    {
        this.revalidate = function ()
        {
            this.addErrorClassToInput();
            onSuggestionCB();
        };
        return this;
    };
    
    EmailValidator.prototype.setModalID = function (strModalID)
    {
        this.strModalID = strModalID;
        return this;
    };

    EmailValidator.prototype.setInputID = function (strInputID)
    {
        this.strInputID = strInputID;
        return this;
    };

    EmailValidator.prototype.setErrorClass = function (strErrorClass)
    {
        this.strErrorClass = strErrorClass;
        return this;
    };
    //</editor-fold>
    
    EmailValidator.prototype.onTooManyEmails = function () 
    {
        fError("You cannot send more than 5 emails at one time.", "", "OK", applyTo(this, this.onInvalidCB));
    };

    /**
     * adds this.strErrorClass to element with ID this.strInputID
     */
    EmailValidator.prototype.addErrorClassToInput = function ()
    {
        if (this.strInputID)
        {
            $("#" + this.strInputID).addClass(this.strErrorClass);
        }
    };

    /**
     * removes this.strErrorClass from element with ID this.strInputID
     */
    EmailValidator.prototype.removeClassFromInput = function ()
    {
        if (this.strInputID)
        {
            $("#" + this.strInputID).removeClass(this.strErrorClass);
        }
    };

    EmailValidator.prototype.run = function ()
    {
        if(this.strEmails === "") 
        {
            this.state = EmailValidator.states.INVALID;
            this.onInvalidCB();
            return;
        }
        
        // onValid, onInvalid and strEmails are necessary!
        if (!this.onValidCB || !this.onInvalidCB)
        {
            throw new Error("EmailValidator is missing essential data!");
        }
        
        var emails;

        // check if not over allowed email count
        if( !this.bolIsSingleEmail )
        {
            emails = this.strEmails.split(",");
            if( emails.length > 50 ) {
                this.state = EmailValidator.states.TOO_MANY_EMAILS;
                this.onTooManyEmails();
                return;
            }
        }
        else
        {
            emails = [ this.strEmails ];
        }

        // test emails against email regex before posting them
        for (var i in emails)
        {
            if ( emails.hasOwnProperty(i) && !EmailValidator.regexTest( emails[i].trim() ) )
            {
                this.state = EmailValidator.states.INVALID;
                this.onInvalidCB( emails[i].trim() );
                return;
            }
        }

        this.state = EmailValidator.states.RUNNING;

        $.post('/chkMail.php', {'q': this.strEmails}, applyTo(this, this.onResponse));
    };

    EmailValidator.prototype.onResponse = function (data)
    {
        var arrReturn = JSON.parse(data);

        if (arrReturn['result'] === 0)
        {
            this.state = EmailValidator.states.VALID;
            this.onValidCB(this);
        }
        else if(arrReturn['result'] === EmailValidator.states.INVALID) 
        {
            this.state = EmailValidator.states.INVALID;
            this.onInvalidCB();
        }
        else if (arrReturn['result'] === 2)
        {
            this.strSuggestedEmails = arrReturn['suggest'];

            if (arrReturn['no_mx'])
            {
                this.strNoMxEmails = arrReturn['no_mx'];
                this.state = EmailValidator.states.MISSING_MX_RECORDS;
            }
            else
            {
                this.state = EmailValidator.states.POSSIBLE_TYPO;
            }

            // this calls onSuggestionCB
            this.revalidate();
        }
        else if (arrReturn['result'] === 4)
        {
            this.state = EmailValidator.states.TOO_MANY_EMAILS;
            this.onTooManyEmails();
        }
    };

    EmailValidator.prototype.revalidate = function ()
    {
        // add typo suggestions and emails with no mx records to string
        var strMsg = '';
        if (this.strSuggestedEmails !== '')
        {
            strMsg += "Did you mean:";
            strMsg += " " + this.strSuggestedEmails + "?\n";
        }
        if (this.strNoMxEmails !== '')
        {
            if(this.bolIsSingleEmail)
            {
                strMsg += "It\u2019s possible that this e-mail address is incorrect:"            }
            else 
            {
                strMsg += "These e-mail addresses might be invalid:"            }
            
            strMsg += " " + this.strNoMxEmails + ".\n";
        }

        if(this.bolIsSingleEmail)
        {
            strMsg += "Please check the email you have entered! If it is correct, click OK.";
        }
        else 
        {
            strMsg += "Please verify that the entered e-mails are correct! If all e-mails are correct, press OK.";
        }

        this.addErrorClassToInput();

        // hide the original modal to avoid overlapping
        if (this.strModalID && $('#'+this.strModalID).css('opacity') == 1)
        {
            hideModal(this.strModalID);
        }

        fConfirm(
            strMsg,
            "Check the email address you entered",
            "OK",
            "Cancel",
            applyTo(this, function ( bolResult)
            {
                // execute onInvalid only if user declines
                if (bolResult === false)
                {
                    this.state = EmailValidator.states.INVALID;
                    this.onInvalidCB();
                }
            }),
            applyTo(this, function ()
            {
                this.state = EmailValidator.states.ACCEPTED_TYPO;
                this.onValidCB();
            }, this)
        );
    };

    EmailValidator.prototype.isSubmittable = function ()
    {
        return [EmailValidator.states.VALID, EmailValidator.states.ACCEPTED_TYPO].indexOf(this.state) !== -1;
    };

    EmailValidator.states = {
        READY: -2,              // initial state
        RUNNING: -1,            // request has started and server has not responded yet

        // => onValidCB
        VALID: 0,

        // => onInvalidCB
        INVALID: 1,

        // => revalidate => onSuggestionCB
        POSSIBLE_TYPO: 2,       // there are typos in the submitted emails
        MISSING_MX_RECORDS: 3,  // some emails have missing mx records
        TOO_MANY_EMAILS: 4,     // too many emails are submitted

        // => revalidate => onSuggestionCB (clicked OK) => onValid 
        ACCEPTED_TYPO: 5        // typo was spotted but user dismissed it
    };
    
    // the function is defined in functions.js, but because this script is included in bergafoto, lets check to make sure.
    if ( typeof applyTo !== 'function' )
    {
        /**
         * Magic function that makes vanilla JS objects usable
         *  - execute fn in the context of $this with passed parameters
         *  - you can also pass parameters to the fn that is returned, they will be added to the fn call
         * @param $this - Object scope
         * @param fn - Object method to execute
         * @param var1 - first parameter to be passed to fn
         * @returns {Function}
         */
        window.applyTo = function( $this, fn, var1 )
        {
            if ( !$this )
            {
                throw new Error( "Invalid usage of closure function, scope must be defined." );
            }
        
            if ( !fn )
            {
                throw new Error( "Invalid usage of closure function, fn must be defined." );
            }
        
            var finalArgs = [];
        
            // skip first 3 arguments (callee, $this, fn)
            for ( var i = 2; i < arguments.length; ++i )
            {
                // add to list of args
                finalArgs.push( arguments[ i ] );
            }
        
            return function ()
            {
                // add all arguments
                for ( var i = 0; i < arguments.length; ++i )
                {
                    finalArgs.push( arguments[ i ] );
                }
            
                // first arguments will be the ones passed to closure, then the ones passed to this function
                return fn.apply( $this, finalArgs );
            };
        }
    }
</script>
<link rel="stylesheet" type="text/css" media="all" href="/bootstrap/css/dropdown.css?v=1715343645"><link rel="stylesheet" type="text/css" media="all" href="/css/global_facelift.css?v=1720449903"><link rel="stylesheet" type="text/css" media="all" href="/css/inputs.css?v=1717752354"><link rel="stylesheet" type="text/css" media="all" href="/js/jquery-ui-1.12.1.custom/jquery-ui.min.css?v=1715343640"><link rel="stylesheet" type="text/css" media="all" href="/css/thickbox.css?v=1715343651"><link rel="stylesheet" type="text/css" media="all" href="/css/modal.css?v=1715343648"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-new/css/font-awesome.min.css?v=1715343648"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-pro/css/light.min.css?v=1715343650"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-pro/css/brands.min.css?v=1715343650"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-pro/css/fontawesome.min.css?v=1715343649"><link rel="stylesheet" type="text/css" media="all" href="/css/alert.css?v=1715343648">
<script src="/js/jquery.cookie.js?v=1715343634"></script>
<script src="/js/jquery-ui-1.12.1.custom/jquery-ui.js?v=1715343640"></script>
<script src="/js/global.js?v=1727422596"></script>
<script src="/js/info_tooltips.js?v=1722490360"></script>
<script src="/js/jquery-ui-1.11.4.custom/jquery-ui.min.js?v=1715343634"></script>
<script src="/js/event.js?v=1715343644"></script>
<script src="/js/functions.js?v=1715343642"></script>
<script src="/js/thickbox.js?v=1715343642"></script>
<script src="/js/modal.js?v=1715343639"></script>
<script src="/js/alert.js?v=1715343643"></script> </head>
<body class="lang_en use_vh">

<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N9HRMM7"
            height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>


<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ZNTW54" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

<script>

    jQuery.fn.shake = function(interval,distance,times){
        interval = typeof interval == "undefined" ? 100 : interval;
        distance = typeof distance == "undefined" ? 10 : distance;
        times = typeof times == "undefined" ? 3 : times;
        var jTarget = $(this);
        jTarget.css('position','relative');
        for(var iter=0;iter<(times+1);iter++){
            jTarget.animate({ left: ((iter%2==0 ? distance : distance*-1))}, interval);
        }
        return jTarget.animate({ left: 0},interval);
    }

	$( window ).bind( 'load', function()
	{
        const strUrlParams = new URLSearchParams(window.location.search);
		if( strUrlParams.has('coupon') || strUrlParams.has('kupons') ) 
		{
			showCreateAccount();
            adaptFormForCoupon();
        }
	} );
</script>
<div id="container" class="filesfm ">
<noscript>
				<table class="alert_container alert_container_danger" style="display: block">
					<tr>
						<td>
							<i class="fa fa-exclamation-circle"></i>
						</td>
						<td>
							<div class="alert_main_text">
								Your browser does not support Javascript. To use this page turn on JavaScript or use another browser.							</div>
						</td>
					</tr>
				</table>
			</noscript>
<header id="header" class="">
<nav>


<div id="header_flag">
<div id="header_flag_1"></div>
<div id="header_flag_2"></div>
</div>
<!-- -->

<div class="container">
<input type="checkbox" class="navbar-toggler" id="navbar-toggler-chb">
<label id="navbar-toggler" class="only-bottom navbar-toggler-stripes user-has-not-clicked-navbar-toggler new" for="navbar-toggler-chb" onclick="if(! $('#navbar-toggler-chb').is(':checked')) { $( '#header' ).css('z-index', '100000'); } $( this ).toggleClass( 'clicked' ); navbarTogglerClicked(); gaev('HeaderClick', 'Hamburger-menu', '');" onmouseover="navbarTogglerClicked()" style="visibility: visible;">
Menu </label>
<script type="text/javascript">
                function navbarTogglerClicked()
                {
                    $( '#navbar-toggler' ).removeClass( 'user-has-not-clicked-navbar-toggler' );
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=failiem.lv';
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=.failiem.lv';
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=files.fm';
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=.files.fm';
                }
            </script>
<div class="nav-left">
<a class="navbar-brand menu-link" onclick="gaev('HeaderClick', 'Logo', '');" href="/">
<img class="logo" alt="Files.fm" src="/images/logo/rebranded/files-fm-logo-slogan.svg"> </a>
</div>
<div class="navbar" id="main-nav" style="overflow: initial;">
<ul>



<li class="nav-button" data-priority="2" data-original-order="3" style="display: list-item;">
<a href="/business" class="nav-link">
Business </a>
</li>
<li class="nav-button library-button  new" data-priority="2" data-original-order="4" style="display: list-item;">
<a href="/discover" class="nav-link">
Content <div class="tag new">New!</div>
</a>
</li>
<li class="nav-button showonfirstload_mid nav-upload nav-bottom" data-priority="2" data-original-order="5" style="display: list-item;">
<a class="nav-link" href="javascript:void(0);" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast'); setTimeout(()=>{$('#uploadifive-file_upload').shake();}, 50); gaev('HeaderClick', 'Upload', '');"></a>
</li>
<li class="nav-button showonfirstload_mid nav-plans nav-bottom" data-priority="2" data-original-order="6">
<a class="nav-link" href="/storage-plans" onclick="gaev('HeaderClick', 'Storage_plans_and_prices', '');">
<div class="top">Pricing</div>
<div class="bottom">Upgrade</div>
</a>
</li>
<li class="nav-button darker blue showonfirstload_small nav-files nav-bottom nav-hideTop" data-priority="1" style="margin-right: 6px; display: list-item;" data-original-order="7">
<a href="/filebrowser" onclick="gaev('HeaderClick', 'My_files', 'NotLoggedIn');" class="nav-link">
My files </a>
</li>
<li class="nav-right nav-button darker showonfirstload_small nav-bottom nav-login" data-priority="0" data-original-order="8">
<div id="login">
<a href="javascript:void(0);" onclick="gaev('HeaderClick', 'Log_in', ''); showSignIn(); return false;" id="login_button" class="">
<span id="login_button_text">Log in</span>
</a>
</div>
</li>
<li class="nav-right nav-button red showonfirstload_small" data-priority="1" data-original-order="9">
<div>
<a href="javascript:void(0);" onclick="gaev('HeaderClick', 'Sign_up', ''); showCreateAccount(); return false;" id="signup">New</a>
</div>
</li>
<li class="nav-right showonfirstload_mid" id="lang_switch" data-priority="2" data-original-order="10">
<div class="header_menu_wrap">
<div class="header_menu_label">
<img id="lang_switch_icon_dark" src="/images/UI_icons/globe.svg">
<span class="currentlang">EN</span>
</div>
<div class="header_menu_drawer right">
<a class="drawer-item" href="javascript:changeLanguage('en', 'EN');">English (EN)</a>
<a class="drawer-item" href="javascript:changeLanguage('es', 'ES');">Español (ES)</a>
<a class="drawer-item" href="javascript:changeLanguage('de', 'DE');">Deutsch (DE)</a>
<a class="drawer-item" href="javascript:changeLanguage('fi', 'FI');">Suomi (FI)</a>

<a class="drawer-item" href="javascript:changeLanguage('ru', 'РУ');">Русский (РУ)</a>
<a class="drawer-item" href="javascript:changeLanguage('uk', 'UK');">Українська (UA)</a>
<a class="drawer-item" href="javascript:changeLanguage('lv', 'LV');">Latviešu (LV)</a>
</div>
</div>
</li>
</ul>
</div>
<script>
                function addAnonymousUploads()
                {
                    var addUploads = confirm('Bind previous uploads from this device to your account? You can manage or delete them.');
                    if (addUploads == true)
                    {
                        $('.add_anonym_uplaods').val('1');
                    }
                }
            </script>
<div id="mega-menu" class="collapse">
<div class="container event_ignore_click">
<ul id="nav-functional" class="has-items event_ignore_click"><li data-priority="10" class="nav-button" data-original-order="0" data-original-width="125" style="display: list-item;">
<div class="header_menu_wrap">
<div class="header_menu_label">Solutions</div>
<div class="header_menu_drawer">
<a class=" SyncShare withicon drawer-item" href="/sync-share" onclick="gaev('HeaderClick', 'Solutions-Storage', '');">
Data storage <div class="desc">Automatic sync and sharing tools</div>
</a>
<a class=" Filebox withicon drawer-item" href="/upload-form" onclick="gaev('HeaderClick', 'Solutions-Filebox', '');">
Integrate file uploads or API <div class="desc">File upload form for websites</div>
</a>
<a class="PublicProfiles withicon drawer-item" href="/public-profiles" onclick="gaev('HeaderClick', 'Solutions-Publish', '');">
Publish content <div class="desc">Create a public profile and file catalog</div>
</a>
<a class=" SportEvents withicon drawer-item" href="/events" onclick="gaev('HeaderClick', 'Solutions-SportEvents', '');">
For sports and events <div class="desc">Publishing content from events</div>
</a>
<a class=" SellFiles withicon drawer-item" href="/sell-files" onclick="gaev('HeaderClick', 'Solutions-SellFiles', '');">
Sell content <div class="desc">Sell your content publicly or privately</div>
</a>

</div>
</div>
</li><li data-priority="2" class="nav-button" data-original-order="1" style="display: list-item;" data-original-width="96">
<div class="header_menu_wrap">
<div class="header_menu_label">Apps</div>
<div class="header_menu_drawer">
<a class="drawer-item" href="https://chat.files.fm" onclick="gaev('HeaderClick', 'Apps-Chat-AI', '');" target="_blank"> AI chat.files.fm</a>
<a class="drawer-item" href="https://play.google.com/store/apps/details?id=com.files.fm" onclick="gaev('HeaderClick', 'Apps-Android', '');" target="_blank"> Mobile: Android <div class="drawer-item-new">New!</div></a>
<a class="drawer-item" href="https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796" onclick="gaev('HeaderClick', 'Apps-IOS', '');" target="_blank"> Mobile: Apple iOS <div class="drawer-item-new">New!</div></a>
<a class="drawer-item" href="/sync-share#setup" onclick="gaev('HeaderClick', 'Apps-Desktop', '');"> Sync for Windows | MacOS | Linux</a>

<a class="drawer-item" href="/webdav-info" onclick="gaev('HeaderClick', 'Apps-Webdav', '');">Network drive via Webdav</a>
</div>
</div>
</li><li data-priority="2" class="nav-button" data-original-order="2" style="display: list-item;" data-original-width="96">
<div class="header_menu_wrap">
<div class="header_menu_label">Tools</div>
<div class="header_menu_drawer">
<a class="withicon drawer-item Useroutline" target="_blank" href="/public-profiles" onclick="gaev('HeaderClick', 'Tools-My-public-profile', '');">My public profile</a>
<a class="withicon drawer-item ConvertMp4" href="?convert-to-mp4" onclick="gaev('HeaderClick', 'Tools-convert-to-mp4', '');">Convert video to mp4</a>
<a class="withicon drawer-item ConvertPDF" href="?convert-to-pdf" onclick="gaev('HeaderClick', 'Tools-convert-to-pdf', '');">Convert docs to PDF</a>
<a class="withicon drawer-item VideoCall" href="https://video.failiem.lv/b/auth/openid_connect" onclick="gaev('HeaderClick', 'Tools-Video-room', '');">Create video room</a>
</div>
</div>
</li></ul>
</div>
<div class="overlay"></div>
</div>
<div id="mega-menu-close"></div>
</div>
<div id="navbar-css"></div>
</nav>
</header>
<script>

            if (!$.cookie('new_library'))
        {
            $('.library-button').addClass('new');
            $('.navbar-toggler-stripes').addClass('new');
            
        }

        $('.library-button').on('click', function () {
            if ( $(this).hasClass('new') )
            {
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=failiem.lv';
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=.failiem.lv';
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=files.fm';
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=.files.fm';

                $(this).removeClass('new');
                $('.navbar-toggler-stripes').removeClass('new');
            }
        });

        
    $('#mega-menu .other-apps LI').on('click', function () {
        if ( $('A:first-child', this).attr('href') != null && $('A:first-child', this).attr('href').indexOf('javascript:') == -1 )
        {
            window.location = $('A:first-child', this).attr('href');
        }
    });
    
    $('#mega-menu-close').on('click', function () {
        $( '#navbar-toggler-chb' ).prop('checked', false);
        $( '#header' ).css('z-index', '');
    });

    $('.header_menu_wrap').on('mouseleave', function (e)
    {
        var $elem = $(this);
        
        if (! $elem.parents('#mega-menu').length) 
        {
            if ($elem.is("#usergreeting") ){
                setTimeout(function() {
                    if(! $('#usergreeting:hover').length > 0)
                    {
                        $elem.find('.header_menu_label').removeClass('open');
                    }
                }, 500);
            }
            else
            {
                if(!$elem[ 0 ].matches(":hover"))
                {
                    $elem.find('.header_menu_label').removeClass('open');
                }
            }
        }
    });

    $('.header_menu_label').on('click', function () {
       
        var that = this;

        $(".header_menu_label").filter(function() {
            // check object in list is not current object
            if ($(this).parents('#mega-menu').length)
            {
                return false;
            }
            return this != that;
        }).removeClass('open');

        $(this).toggleClass('open');
       
        var $elem = $(this);
        
        $elem.parent().find('.header_menu_drawer').css({
            'left': '', 
            'right': ''
        });
        
        var bounding = $elem.parent().find('.header_menu_drawer')[0].getBoundingClientRect();
        var boundingParent = $elem[0].getBoundingClientRect();
        if (bounding.left < 0)
        {
            $elem.parent().find('.header_menu_drawer').css({
                'left': -boundingParent.left+5 + 'px', 
                'right': 'unset'
            });
        }
        if (bounding.right > (window.innerWidth || document.documentElement.clientWidth))
        {
            $elem.parent().find('.header_menu_drawer').css({
                'left': 'unset', 
                'right': -(window.innerWidth-boundingParent.right)+20 + 'px'
            });
        }
    });
</script>
<script src="/js/Captcha/Google/LazyGoogleReCaptchaV2.js"></script>
<script>
                objLazyGoogleReCaptchaV2.strLanguageKey = "en";
                objLazyGoogleReCaptchaV2.strSiteKey = "6LflqXQUAAAAAP2CM782IqIgjzooEt9soXTCwxX2";
            </script>
<link rel="stylesheet" type="text/css" media="all" href="/css/sign_in_form.css?v=35">
<div id="sign-in" class="modal-container" tabindex="-1" role="dialog" aria-labelledby="createaccount-header signin-header" aria-hidden="true" style="display:none">
<div class="modal-inner">

<div id="sign-in-header">
<span id="signin-header" onclick="if( !$( '#signin-modal-content' ).is( ':visible' ) ) showSignIn(); return false;">
Log in <img id="signin-header_icon_inactive" src="/images/signup_form/log_in.svg?v=2" alt="Login to upload files">
<img id="signin-header_icon_active" src="/images/signup_form/log_in_blue.svg?v=2" alt="Login to upload files">
</span>
<span id="createaccount-header" onclick="if( !$('#createaccount-modal-content').is(':visible')) showCreateAccount(); return false;">
Sign up </span>
</div>

<div id="createaccount-referral-container" style="display:none">
<span class="referrer-container">
You have been invited by&nbsp;<span id="createaccount-referral-referrer"></span>&nbsp;to create account and get 1GB </span>
<hr>
</div>
<div id="createaccount-message-container">
<table class="alert_container alert_container_danger">
<tbody><tr>
<td><i class="fa fa-exclamation-circle"></i></td>
<td><div class="alert_main_text"></div></td>
</tr>
</tbody></table>
</div>

<div id="createaccount-modal-content" class="modal-content">
<div class="info"></div>

<div class="signin-modal-content-social">
<div class="signin-modal-content-social-title">Create free account:</div>
<div class="signin-modal-content-social-buttons-container signin-modal-content-social-buttons-container-2-buttons">

<div class="standard_button google_button social_login_button" onclick="checkSocialLogin('google');">
<img src="/images/signup_form/login-google.svg?v=2" alt="Sign up with Google to upload files for free">
<span>Google</span>
</div>
<div class="standard_button ms_button social_login_button" onclick="checkSocialLogin('microsoft');">
<img src="/images/signup_form/login-microsoft.svg" alt="Sign up with Microsoft to upload files for free">
<span>Microsoft</span>
</div>
<div class="justify_el"></div>
</div>
</div>

<div class="or-delimiter">
or </div>

<div id="createaccount-simple-container">
<input id="createaccount-referral-hash" name="inviter_hash" type="hidden">
<input id="createaccount-referral-user" name="inviter_user" type="hidden">
<div id="register_coupon_code">
<div class="input-label">
<label for="register_coupon_code_input">Coupon code</label>
<input id="register_coupon_code_input" name="coupon_code" type="text">
</div>
<div class="createaccount-input-container"></div>
</div>
<div class="no-coupon-link">
<a href="" onclick="revertFormFromCoupon(); return false">I do not have a coupon code »</a>
</div>
<div class="input-label">
<label for="createaccount_name">First name</label>
<input id="createaccount_name" name="createaccount_name" type="text" autocomplete="off">
</div>
<div class="input-label">
<label for="createaccount_surname">Last name</label>
<input id="createaccount_surname" name="createaccount_surname" type="text" autocomplete="off">
</div>
<div class="input-label">
<label for="createaccount_email">E-mail</label>
<input id="createaccount_email" name="createaccount_email" type="email" autocomplete="off" onchange="createUsername(this.value);">
</div>
<div class="input-label">
<label for="createaccount_password">Password</label>
<input id="createaccount_password" name="createaccount_password" type="password" autocomplete="off">
</div>
<div class="justify_el"></div>


<div id="your_public_profile_container">
<div id="your_public_profile_label_text_before">
Your profile:
</div>
<div id="your_public_profile_label">
<span id="your_public_profile_label_text">
Your profile:
</span>
<span id="your_public_profile_label_host">
https://files.fm/ </span>
</div>
<div id="your_public_profile_field_input">
<input id="createaccount_username" name="createaccount_username" type="text" autocomplete="off" placeholder="Username" onkeyup="usernameChanged();">
</div>
</div>
<div id="createaccount_coupon_info" onclick="showSignIn()">
I already have a Files.fm account » </div>
<div id="createaccount_error_msg" class="error_msg"></div>
<div class="sign_in_captcha" id="createaccount_captcha">
<div class="google-recaptcha-v2-container" id="C4143575-A8B1-1BB7-9C3A-C77EE70374A7"></div> <script>
                                function loadCreateAccountCaptcha()
                                {
                                    (function () {
            var init = function (){
                // Wait for include to load
                if ( typeof(objLazyGoogleReCaptchaV2) !== "undefined" )
                {
                    objLazyGoogleReCaptchaV2.initInstance (
                        "C4143575-A8B1-1BB7-9C3A-C77EE70374A7",
                        captchaCreateAccountLoaded,
                        captchaCreateAccountSubmitted
                    )
                }
                else
                {
                    setTimeout(init, 50);
                }
            };
            init();
        })();
                                }
                            </script>
</div>
<div class="sign_in_submit_bn" onclick="checkCreateAccountForm();">
Sign up <img src="/images/signup_form/sign_up.svg" alt="Sign up to upload files for free">
</div>
<div id="createaccount-modal-link-container">
<a id="createaccount-modal-coupon-link" href="javascript:void(0)" onclick="adaptFormForCoupon()">
<span>Use a coupon</span>
</a>
</div>
<div id="createaccount_info">
By using this website, you agree to the terms and data processing: <a href="/terms?source=sign-up" target="_blank">Learn more »</a> </div>
<div id="createaccount_info_ico">
Registred users can store and access files for unlimited time and choose to publish them in their profile. <a href="/storage-plans" target="_blank">More info »</a> </div>

<div id="createaccount_termsandcondtotions_ico">
By signing up, you agree to our <a href="/terms" target="blank">terms of use »</a> </div>
<input id="register_from_ico" type="hidden" name="from_ico" value="0">
<input type="hidden" name="login_return_url" class="login_return_url" value="">
<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
</div>

</div>


<div id="signin-modal-content" class="modal-content">
<table id="signin-modal-content-error" class="alert_container alert_container_info">
<tbody><tr>
<td>
<i class="fa fa-exclamation-circle"></i>
</td>
<td>
<div class="alert_main_text"></div>
</td>
</tr>
</tbody></table>

<div class="signin-modal-content-social">
<div class="signin-modal-content-social-title">Choose sign-in method:</div>
<div class="signin-modal-content-social-buttons-container">
<div class="standard_button fb_button social_login_button" onclick="checkSocialLogin('facebook');">
<img src="/images/signup_form/login-facebook.svg?v=2" alt="Login with Facebook to upload files for free">
<span>Facebook</span>
</div>
<div class="standard_button google_button social_login_button" onclick="checkSocialLogin('google');">
<img src="/images/signup_form/login-google.svg?v=2" alt="Login with Google to upload files for free">
<span>Google</span>
</div>
<div class="standard_button ms_button social_login_button" onclick="checkSocialLogin('microsoft');">
<img src="/images/signup_form/login-microsoft.svg" alt="Sign up with Microsoft to upload files for free">
<span>Microsoft</span>
</div>
<div class="justify_el"></div>
</div>
</div>

<div class="or-delimiter">
or </div>

<div id="signin-modal-content-simple">
<form onsubmit="checkSignInForm(); return false;" id="login_filesfm">
<div id="signin_input_container">
<div class="input-label l_coupon_code">
<label for="l_coupon_code">Coupon code</label>
<input id="l_coupon_code" name="coupon_code" type="text">
</div>
<div class="no-coupon-link">
<a href="" onclick="revertFormFromCoupon(); return false">I do not have a coupon code »</a>
</div>
<div class="input-label">
<label for="l_user">Username or e-mail</label>
<input id="l_user" name="l_user" type="text">
</div>
<div class="input-label">
<label for="l_pass">Password</label>
<input id="l_pass" name="l_pass" type="password">
</div>
<div class="justify_el"></div>
</div>
<a id="signin-modal-forgot-link" href="" onclick="showForgotPassword(); return false">
<span>Forgot password?</span>
</a>
<div id="signin_coupon_info" onclick="showCreateAccount()">
I do not have a Files.fm account » </div>
<div id="signin_error_msg" class="error_msg"></div>
<input type="submit" style="display: none;">
<div class="sign_in_submit_bn" onclick="checkSignInForm()">
Log in <img src="/images/signup_form/sign_up.svg" alt="Sign up">
</div>
</form>
<div id="signin-modal-link-container">
<a id="signin-modal-coupon-link" href="javascript:void(0)" onclick="adaptFormForCoupon()">
<span>Use a coupon</span>
</a>
</div>
<input type="hidden" name="login_return_url" class="login_return_url" value="">
<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
</div>

</div>


<div id="forgotpassword-modal-content" class="modal-content">
<form onsubmit="return false;">
<div id="forgotpassword_text">
Enter your email address to reset your password. You may need to check your spam folder: </div>
<div class="input-label forgotpassword_email">
<label for="forgotpassword_email">E-mail</label>
<input id="forgotpassword_email" type="text">
</div>
<div id="forgotpassword_error_msg" class="error_msg"></div>
<div class="sign_in_submit_bn" onclick="checkForgotPasswordForm();">
Send recovery email <img src="/images/signup_form/sign_up.svg" alt="Send recovery email">
</div>
</form>
</div>


<div id="addcookieuploads-modal-content" class="modal-content">
<div id="addcookieuploads_info">
Bind previous uploads from this device to your account? You can manage or delete them. </div>
<div id="addcookieuploads_button_container">
<div class="addcookieuploads_button" id="addcookieuploads_button_no" onclick="setAddCookieUploads(false)">
No </div>
<div class="addcookieuploads_button" id="addcookieuploads_button_yes" onclick="setAddCookieUploads(true)">
Yes </div>
</div>
</div>


<div id="createaccountsuccessmessage-modal-content" class="modal-content">
<div id="createaccountsuccessmessage_info">
<div>
Thank you! Your Files.fm account is created and an e-mail with account access data is sent to you. </div>
<div>
Close this form, fill in the information about the folder and press the button "Save and send the link". </div>
</div>
<div id="createaccountsuccessmessage_button" onclick="hideModal('sign-in', true)">
Close </div>
</div>

<div id="twofactor_authcode-modal-content" class="modal-content" style="display:none">
<div id="twofactor_authcode_container">
<div id="twofactor_error_msg" class="error_msg"></div>
<div class="twofactor_code_required_message">
Please enter the two factor authentication code from your email! </div>
<input id="twofactorcode" name="twofactorcode" type="text" placeholder="Authentification code">
<div class="sign_in_submit_bn" onclick="trySignIn( $('#twofactorcode').val() )">
Log in <img src="/images/signup_form/sign_up.svg" alt="Log in">
</div>
<div id="twofactor-modal-link-container">
<a id="twofactor-modal-goback-link" href="" onclick="bolPrevFinished_checkSignInForm = true; showSignIn(); return false">
<span>Go back</span>
</a>
</div>
</div>
</div>

<div style="display: none">
<form id="login_facebook" method="get" action="/">
<input type="hidden" name="fb_login" value="">
<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
<input type="hidden" name="login_return_url" class="login_return_url" value="">
<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
<input type="hidden" name="inviter_user" value="">
<input type="hidden" name="inviter_hash" value="">
<input type="submit" class="standard_button" value="Log in with Facebook" style="width: 100%">
</form>
<form id="login_google" method="get" action="/">
<input type="hidden" name="google_login" value="">
<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
<input type="hidden" name="login_return_url" class="login_return_url" value="">
<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
<input type="hidden" name="inviter_user" value="">
<input type="hidden" name="inviter_hash" value="">
<input type="submit" class="standard_button" value="Log in with Google" style="width: 100%">
</form>
<form id="login_microsoft" method="get" action="/">
<input type="hidden" name="microsoft_login" value="">
<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
<input type="hidden" name="login_return_url" class="login_return_url" value="">
<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
<input type="hidden" name="inviter_user" value="">
<input type="hidden" name="inviter_hash" value="">
<input type="submit" class="standard_button" value="Login with Microsoft account" style="width: 100%">
</form>
</div>

<div id="sign-in_disable_form">
<i class="fa fa-spinner fa-spin"></i>
</div>
</div>
<div class="modal-close" id="sign-in_modal_close" data-dismiss="modal" data-close="Close"></div>
</div>
<script>

	var bolRewriteUrlHash = true;
	
    var bolSigninCaptchaRequired = Boolean();
    var bolSignupCaptchaRequired = Boolean(1);
    
    var strSinginCaptchaContainerID = 'signin_captcha';
    var strSignupCaptchaContainerID = 'createaccount_captcha';
    
    
	function showCreateAccount( bolICO )
	{
        bolHasCookieUploadsFunc();
        if( typeof bolICO === 'undefined' )
        {
            // if switching forms, get bolICO from other form
            bolICO = $( "#register_from_ico" ).val() > 0;
        }
        
        $( '#signin-header' ).removeClass( 'active' );
        $( '#createaccount-header' ).addClass( 'active' );

		$( '#signin-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();

		$('#createaccount-modal-content').show();
		
		if( bolICO )
        {
            $( "#business_account_chechbox_container" ).hide();
            $( "#createaccount_info_ico" ).show();
            $( "#createaccount_termsandcondtotions_ico" ).show( );
            $( "#createaccount_termsandcondtotions" ).hide( );
            $( "#createaccount_info" ).hide();
            $( "#register_from_ico" ).val( 1 );
        }
        else
        {
            $( "#business_account_chechbox_container" ).show();
            $( "#createaccount_termsandcondtotions" ).show( );
            $( "#createaccount_termsandcondtotions_ico" ).hide( );
            $( "#createaccount_info_ico" ).hide();
            $( "#createaccount_info" ).show();
            $( "#register_from_ico" ).val( 0 );
        }

		showModal( 'sign-in' );
  
		if ( bolSignupCaptchaRequired )
            loadCreateAccountCaptcha();
		
		if ( bolRewriteUrlHash )
		{
			window.location.hash = 'sign_up';
		}
	}
	
	function setRegisterReferral( strInviter, hash, strInviteeEmail )
    {
        $( "#createaccount-referral-referrer" ).text( strInviter );
        $( "#createaccount-referral-container" ).show();
        
        if ( strInviteeEmail )
        {
            $( "#createaccount_email" )
                .val( strInviteeEmail )
                .attr( 'disabled', 'true' );
        }
    
        $("input[name='inviter_user']").val( strInviter );
        $("input[name='inviter_hash']").val( hash );
    }

	function showSignIn( bolICO )
	{
        bolHasCookieUploadsFunc();
	    if( typeof bolICO === 'undefined' )
        {
            // if switching forms, get bolICO from other form
            bolICO = $( "#register_from_ico" ).val() > 0;
        }

        $( '#signin-header' ).addClass( 'active' );
        $( '#createaccount-header' ).removeClass( 'active' );
        
	    	    if( typeof closeGallery === "function" )
        {
            closeGallery();
        }
        		
		$( '#createaccount-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();
        $( '#twofactor_authcode-modal-content' ).hide();
        
        if ( bolICO )
        {
            $( "#register_from_ico" ).val( 1 );
        }
        else
        {
            $( "#register_from_ico" ).val( 0 );
        }

		$( '#signin-modal-content' ).show();

		showModal( 'sign-in' );
  
		if ( bolSigninCaptchaRequired )
            loadSignInCaptcha();
		
		if ( bolRewriteUrlHash )
		{
			window.location.hash = 'log_in';
		}
	}
    
    /*** Start: Captcha callbacks ***/
    
    function captchaCreateAccountLoaded( bolSuccess )
    {
        if ( ! bolSuccess )
        {
            addError(strSignupCaptchaContainerID, "createaccount_error_msg", "An error has occurred! Please check your internet connection and try again later. If the problem does not resolve, please contact [email protected]");
        }
        else
        {
            removeError( strSignupCaptchaContainerID );
            removeAllErrors( "createaccount_error_msg" );
            $("#"+strSignupCaptchaContainerID).append('<input type="hidden" class="captcha_response" value="" />');
        }
    }
    
    function captchaCreateAccountSubmitted( strResponse )
    {
        removeError( strSignupCaptchaContainerID );
        removeAllErrors( "createaccount_error_msg" );
        $('#' + strSignupCaptchaContainerID + ' .captcha_response').val( strResponse );
    }
    
    
    function captchaSignInLoaded( bolSuccess )
    {
        if ( ! bolSuccess )
        {
            addError(strSinginCaptchaContainerID, "signin_error_msg", "An error has occurred! Please check your internet connection and try again later. If the problem does not resolve, please contact [email protected]");
        }
        else
        {
            removeError( strSinginCaptchaContainerID );
            removeAllErrors( "signin_error_msg" );
            $("#"+strSinginCaptchaContainerID).append('<input type="hidden" class="captcha_response" value="" />');
        }
    }
    function captchaSignInSubmitted( strResponse )
    {
        removeError( strSinginCaptchaContainerID );
        removeAllErrors( "signin_error_msg" );
        $('#' + strSinginCaptchaContainerID + ' .captcha_response').val( strResponse );
    }
    /*** End: Captcha callbacks ***/
    
    
	function revertFormFromCoupon()
    {
	    $( '#sign-in' ).removeClass( 'coupun_form' );
    }
    
    function adaptFormForCoupon()
    {
	    $( '#sign-in' ).addClass( 'coupun_form' );

        const strUrlParams = new URLSearchParams(window.location.search);
		if( strUrlParams.has('coupon') ) 
		{
            var strCouponCode = strUrlParams.get('coupon');
        }
        if( strUrlParams.has('kupons') ) 
		{
            var strCouponCode = strUrlParams.get('kupons')
        }

        if( typeof strCouponCode !== 'undefined' )
        {
            $('#register_coupon_code_input').val(strCouponCode)
        }
    }

	function showForgotPassword( strEmail )
	{
	    if ( typeof strEmail != 'undefined' )
	    {
			$( '#sign-in-header' ).hide();
			$( '#forgotpassword_email' ).val( strEmail );
	    }

		$( '#signin-header' ).insertBefore( $( '#createaccount-header' ) );
		
		$( '#createaccount-modal-content' ).hide();
		$( '#signin-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();

		$( '#forgotpassword-modal-content' ).show();

		showModal( 'sign-in' );

		if ( bolRewriteUrlHash )
		{
			window.location.hash = 'forgot_password';
		}
	}

	function showAddCookieUploads()
	{
		$( '#createaccount-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#signin-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();

		$( '#addcookieuploads-modal-content' ).show();

		showModal( 'sign-in' );
	}

	function showCreateAccountSuccessMessage()
	{
		$( '#createaccount-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#signin-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		
		$( '#createaccountsuccessmessage-modal-content' ).show();
		
		showModal( 'sign-in' );
	}

	var bolHasCookieUploads = false;

    function bolHasCookieUploadsFunc()
    {
        $.each(document.cookie.split(/; */), function()  {
            var splitCookie = this.split('=');
            if(splitCookie[0].slice(0, 2) == 'uf')
            {
                bolHasCookieUploads = true;
            }
        });
    }

	var bolAddCookieUploadsAnswered = false;
	var bolAddCookieUploads = false;
	var strActiveForm = '';

	function setAddCookieUploads(val) {

		bolAddCookieUploads = val;
		bolAddCookieUploadsAnswered = true;

		if (val) {
			$('#login_facebook .add_anonym_uplaods').val('1');
			$('#login_google .add_anonym_uplaods').val('1');
			$('#login_draugiem .add_anonym_uplaods').val('1');
		}

		if (strActiveForm == 'signin') {
			checkSignInForm();
			showSignIn();
		}
		else if (strActiveForm == 'createaccount') {
			checkCreateAccountForm();
			showCreateAccount();
		}
		else if (strActiveForm == 'facebook' || strActiveForm == 'google' || strActiveForm == 'draugiem') {

			checkSocialLogin(strActiveForm);
		}
	}


	var bolPrevFinished_checkCreateAccountForm = true;
	function checkCreateAccountForm(bolCouponCheckResult) {
        
        var jqCaptchaResultInput = $('#' + strSignupCaptchaContainerID + ' .captcha_response');
	    
		if ( bolCouponCheckResult === undefined )
		{
			bolCouponCheckResult = null;
		}

		if (bolPrevFinished_checkCreateAccountForm)
		{
			bolPrevFinished_checkCreateAccountForm = false;
			$('#sign-in_disable_form').show();
   
			var bolCreateBusinessAccountDataOk = true;
			if (bolCreateBusinessAccount)
			{
				bolCreateBusinessAccountDataOk = false;

				if ($('#createaccount_company_name').val().trim().length < 4 ) {

					addError('createaccount_company_name', 'createaccount_error_msg', 'Please enter a company name that is at least 4 characters long.');
				}
				else {

					removeError('createaccount_company_name');

					if ($('#createaccount_company_phone').val().trim().length < 4 ) {

						addError('createaccount_company_phone', 'createaccount_error_msg', 'The company phone number must be at least 4 digits long!');
					}
					else {

						removeError('createaccount_company_phone');

						bolCreateBusinessAccountDataOk = true;
					}
				}
			}
            
            if ( $( "#register_coupon_code" ).css("display") !== "none" && !bolCouponCheckResult )
            {
                // coupon field is visible -> so it must be filled
                if( bolCouponCheckResult === false )
                {
                    addError( 'register_coupon_code_input', 'createaccount_error_msg', 'The coupon code you entered is invalid or already used!' );
                    
                    bolPrevFinished_checkCreateAccountForm = true;
                    $('#sign-in_disable_form').hide();
                    return;
                }
                else if( !bolCouponCheckResult )
                {
                    removeError( 'register_coupon_code_input' );
                    
                    bolPrevFinished_checkCreateAccountForm = true;
                    verifyCouponCode( 'register_coupon_code_input', 'createaccount_error_msg', checkCreateAccountForm );
                    return;
                }                
            }
			
			if ( bolCreateBusinessAccountDataOk )
			{
				if ($('#createaccount_name').val().trim().length < 2 ) {

					addError('createaccount_name', 'createaccount_error_msg', 'Please enter a name that is at least 2 characters long.');

					bolPrevFinished_checkCreateAccountForm = true;
					$('#sign-in_disable_form').hide();
				}
				else {

					removeError('createaccount_name');

					if ($('#createaccount_surname').val().trim().length < 2 ) {

						addError('createaccount_surname', 'createaccount_error_msg', 'Please enter a surname that is at least 2 characters long.');

						bolPrevFinished_checkCreateAccountForm = true;
						$('#sign-in_disable_form').hide();
					}
					else {
                        function isURL(url) {
                           return url.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g) !== null;
                        }
                        
                        if ( isURL( $( '#createaccount_surname' ).val().trim() ) )
                        {
                            addError('createaccount_surname', 'createaccount_error_msg', 'Invalid name!');
                            
                            bolPrevFinished_checkCreateAccountForm = true;
                            $('#sign-in_disable_form').hide();
                            return;
                        }
                        else 
                        {
                            removeError( 'createaccount_surname' );
                        }
                        
                        if ( isURL( $( '#createaccount_name' ).val().trim() ) )
                        {
                            addError('createaccount_name', 'createaccount_error_msg', 'Invalid name!');
                            
                            bolPrevFinished_checkCreateAccountForm = true;
                            $('#sign-in_disable_form').hide();
                            return;
                        }
                        else
                        {
                            removeError( 'createaccount_name' );
                        }
					    
						removeError('createaccount_surname');

						if (!validateEmail($('#createaccount_email').val())) {

							addError('createaccount_email', 'createaccount_error_msg', 'Enter a valid e-mail!');

							bolPrevFinished_checkCreateAccountForm = true;
							$('#sign-in_disable_form').hide();
						}
						else {
				            new EmailValidator( $('#createaccount_email').val(), true)
                                .setOnValidCB(function(){
                                    $.ajax({
                                    type: "POST",
                                    dataType: "json",
                                    url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
                                    data: {
                                        'check_email' : true ,
                                        'email' : $('#createaccount_email').val()
                                    },
                                    success: function(data) {
                                        if (data['status'] != 'ok') {
                                            var strError = "This e-mail address is already taken!";
                                            strError += "<br/><a href='' onclick='showForgotPassword(); return false'>" + 'Forgot password' + "</a>";

                                            addHTMLError('createaccount_email', 'createaccount_error_msg', strError );

                                            bolPrevFinished_checkCreateAccountForm = true;
                                            $('#sign-in_disable_form').hide();
                                        }
                                        else {

                                            removeError('createaccount_email');

                                            if ($('#createaccount_username').val().trim().length < 4 ) {

                                                addError('createaccount_username', 'createaccount_error_msg', 'Please enter a username that is at least 4 characters long!');

                                                bolPrevFinished_checkCreateAccountForm = true;
                                                $('#sign-in_disable_form').hide();
                                            }
                                            else {

                                                if (!validateUsername($('#createaccount_username').val().trim())) {

                                                    addError('createaccount_username', 'createaccount_error_msg', 'Can only contain "a-z", "A-Z", "0-9" and "_.@-"');

                                                    bolPrevFinished_checkCreateAccountForm = true;
                                                    $('#sign-in_disable_form').hide();
                                                }
                                                else
                                                {
                                                    $.ajax({
                                                        type: "POST",
                                                        dataType: "json",
                                                        url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
                                                        data: {
                                                            'check_username' : true ,
                                                            'username' : $('#createaccount_username').val()
                                                        },
                                                        success: function(data) {
                                                            if (data['status'] != 'ok') {

                                                                addError('createaccount_username', 'createaccount_error_msg', 'This username is already taken! Please enter a different one!');

                                                                bolPrevFinished_checkCreateAccountForm = true;
                                                                $('#sign-in_disable_form').hide();
                                                            }
                                                            else {

                                                                removeError('createaccount_username');

                                                                if ($('#createaccount_password').val().trim().length < 4 ) {

                                                                    addError('createaccount_password', 'createaccount_error_msg', 'Please enter a password that is at least 4 characters long!');

                                                                    bolPrevFinished_checkCreateAccountForm = true;
                                                                    $('#sign-in_disable_form').hide();
                                                                }
                                                                else
                                                                {
                                                                    removeError('createaccount_password');
    
                                                                    var bolCaptchaOk = true;
                                                                    if ( bolSignupCaptchaRequired )
                                                                    {
                                                                        bolCaptchaOk = false;
                                                                        
                                                                        if ( jqCaptchaResultInput.length && jqCaptchaResultInput.val().length )
                                                                        {
                                                                            bolCaptchaOk = true;
                                                                            removeError( strSignupCaptchaContainerID );
                                                                        }
                                                                        else
                                                                        {
                                                                            if ( ! jqCaptchaResultInput.length )
                                                                            {
                                                                                addError( strSignupCaptchaContainerID, "createaccount_error_msg", "An error has occurred! Please check your internet connection and try again later. If the problem does not resolve, please contact [email protected]" );
                                                                            }
                                                                            else
                                                                            {
                                                                                addError( strSignupCaptchaContainerID, 'createaccount_error_msg', 'Please fill out Captcha!' );
                                                                            }
                                                                        }
                                                                    }
                                                                    
                                                                    if ( ! bolCaptchaOk )
                                                                    {
                                                                        bolPrevFinished_checkCreateAccountForm = true;
                                                                        $( '#sign-in_disable_form' ).hide();
                                                                    }
                                                                    else
                                                                    {
                                                                        removeError( 'createaccount_password' );
                                                                        removeError( strSignupCaptchaContainerID );
        
                                                                        removeAllErrors( 'createaccount_error_msg' );
        
        
                                                                        if ( bolHasCookieUploads == true && bolAddCookieUploadsAnswered == false )
                                                                        {
            
                                                                            strActiveForm = 'createaccount';
                                                                            showAddCookieUploads();
            
                                                                            bolPrevFinished_checkCreateAccountForm = true;
                                                                            $( '#sign-in_disable_form' ).hide();
                                                                        }
                                                                        else
                                                                        {
                                                                            var postData = {
                                                                                'create_account': true,
                                                                                'username': $( '#createaccount_username' ).val(),
                                                                                'email': $( '#createaccount_email' ).val(),
                                                                                'password': $( '#createaccount_password' ).val(),
                                                                                'add_cookie_uploads': bolAddCookieUploads,
                                                                                'first_name': $( '#createaccount_name' ).val(),
                                                                                'surname': $( '#createaccount_surname' ).val(),
                                                                                'create_business_account': bolCreateBusinessAccount,
                                                                                'company_name': $( '#createaccount_company_name' ).val(),
                                                                                'company_phone': $( '#createaccount_company_phone' ).val(),
                                                                                'company_country': $( '#createaccount_company_country' ).val(),
                                                                                'from_ico': $( "#register_from_ico" ).val() ,
                                                                                'recaptcha_response': (jqCaptchaResultInput.length ? jqCaptchaResultInput.val() : '')
                                                                            };

                                                                            // add referral fields if the container is visible
                                                                            if ( $( "#createaccount-referral-container" ).css( "display" ) !== "none" )
                                                                            {
                                                                                postData[ 'inviter_hash' ] = $( "#createaccount-referral-hash" ).val();
                                                                                postData[ 'inviter_user' ] = $( "#createaccount-referral-user" ).val();
                                                                            }
                                                                            
                                                                            if ( $( "#register_coupon_code" ).css( "display" ) !== "none" )
                                                                            {
                                                                                postData.coupon_code = $( "#register_coupon_code_input" ).val().trim();
                                                                            }

                                                                                                                                                        
                                                                            var bolDontRedirectAfterLogin = true;
                                                                            
                                                                            if ( $( '.dont_redirect_after_login' ).val() == '' )
                                                                            {
                                                                            	bolDontRedirectAfterLogin = false;
                                                                            }
                                                                            
                                                                            var strCustomLoginReturnUrl = $( '.login_return_url' ).val();

                                                                            
                                                                            if ( ! bolDontRedirectAfterLogin && strCustomLoginReturnUrl == '' )
                                                                            {
                                                                            	postData.show_onboarding_survey = true;
                                                                            }
                                                                            else 
                                                                            {
                                                                            	postData.show_onboarding_survey = false;
                                                                            }
                                                                            
            
                                                                            $.ajax( {
                                                                                type: "POST",
                                                                                dataType: "json",
                                                                                url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
                                                                                data: postData,
                                                                                success: function ( data )
                                                                                {
                                                                                    if ( data[ 'status' ] == 'ok' )
                                                                                    {
                        																                        																
                                                                                        if ( ! bolDontRedirectAfterLogin )
                                                                                        {
                                                                                            if ( data[ 'custom_login_return_url' ] != 'undefined' )
                                                                                            {
                                                                                                strCustomLoginReturnUrl = data[ 'custom_login_return_url' ];
                                                                                            }

                                                                                            if ( strCustomLoginReturnUrl != '' )
                                                                                            {

                                                                                                if (
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( 'filebrowser' ) == -1 &&
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( window.location.pathname ) != -1 &&
                                                                                                    strCustomLoginReturnUrl != 'sync-share?create_cloud_files_user' &&
                                                                                                    strCustomLoginReturnUrl != 'library-info?after_login' &&
                                                                                                    strCustomLoginReturnUrl != 'video?after-signup' &&
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( 'lifetime-storage' ) == -1 &&
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( 'save-youtube-video' ) == -1
                                                                                                )
                                                                                                {
                                                                                                    if ( location.hash == '#sign_up' )
                                                                                                    {
                                                                                                        location.hash = '';
                                                                                                    }
                                    
                                                                                                    if ( strCustomLoginReturnUrl == 'storage-plans#subscribe' )
                                                                                                    {
                                                                                                        location.hash = 'subscribe';
                                                                                                    }
                                    
                                                                                                    location.reload();
                                                                                                }
                                                                                                else
                                                                                                {
                                                                                                    window.location = "https://files.fm/" + strCustomLoginReturnUrl;
                                                                                                }
                                
                                                                                            }
                                                                                            else
                                                                                            {
                                
                                                                                                window.location = "/account";
                                                                                            }
                                                                                        }
                                                                                        else
                                                                                        {
        
                                                                                            showCreateAccountSuccessMessage();
                            
                                                                                            bolPrevFinished_checkCreateAccountForm = true;
                                                                                            $( '#sign-in_disable_form' ).hide();
                                                                                        }
                                                                                    }
                                                                                    else
                                                                                    {
                        
                                                                                        addError( 'createaccount_error_msg', 'createaccount_error_msg', 'There was an error, contact the Files.fm team!' );
                        
                                                                                        bolPrevFinished_checkCreateAccountForm = true;
                                                                                        $( '#sign-in_disable_form' ).hide();
                                                                                    }
                                                                                },
                                                                                error: function ( data )
                                                                                {
                    
                                                                                    addError( 'createaccount_error_msg', 'createaccount_error_msg', 'An error occurred. Please try again or contact [email protected]!' );
                    
                                                                                    bolPrevFinished_checkCreateAccountForm = true;
                                                                                    $( '#sign-in_disable_form' ).hide();
                                                                                }
                                                                            } );
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        } ,
                                                        error: function(data) {

                                                            addError('createaccount_error_msg', 'createaccount_error_msg', 'An error occurred. Please try again or contact [email protected]!');

                                                            bolPrevFinished_checkCreateAccountForm = true;
                                                            $('#sign-in_disable_form').hide();
                                                        }
                                                    });
                                                }
                                            }
                                        }
                                    } ,
                                    error: function(data) {

                                        addError('createaccount_error_msg', 'createaccount_error_msg', 'An error occurred. Please try again or contact [email protected]!');

                                        bolPrevFinished_checkCreateAccountForm = true;
                                        $('#sign-in_disable_form').hide();
                                    }
                                })
                                }).setOnInvalidCB(function() {
                                    bolPrevFinished_checkCreateAccountForm = true;
                                    $('#sign-in_disable_form').hide();
                                    addError('createaccount_email', 'createaccount_error_msg', 'Enter a valid e-mail!');
                                }).setModalID("sign-in").run();
						}
					}
				}
			}
			else
			{
				bolPrevFinished_checkCreateAccountForm = true;
				$('#sign-in_disable_form').hide();
			}
		}
	}

	function getSigninReturnRedirectUrl()
    {
        if ($('.login_return_url').val() != '') {

            if ($('.dont_redirect_after_login').val() == '') {
                if (
                    ("/"+$('.login_return_url').val()).search(window.location.pathname) != -1 &&
                    $('.login_return_url').val() != 'sync-share?create_cloud_files_user' && 
                    $('.login_return_url').val() == 'storage-plans#subscribe' 
                )
                {
                    return '#subscribe';
                }
                else if ($('.login_return_url').val() == 'my-profile' )
                {
                    return $( '#l_user' ).val();
                }
                else {
                    return $('.login_return_url').val();
                }
            }
        }

        
	    return false;
    }
     
    function verifyCouponCode( strCouponInputID, strErrorID, fnCallback, bolResult )
    {
    	if ( bolResult === undefined )
		{
    		bolResult = null;
		}

        var strCouponInputSelector = "#" + strCouponInputID;
        
        var onError = function ()
        {
            addError( strCouponInputID, strErrorID, 'Invalid coupon code!' );
            
            bolPrevFinished_checkCreateAccountForm = true;
            $( '#sign-in_disable_form' ).hide();
        };
        
        if ( bolResult === false )
        {
            onError();
            return false
        }
        else if ( bolResult === true )
        {
            return true;
        }
        
        if ( $( strCouponInputSelector ).css( "display" ) !== "none" )
        {
            // coupon field is visible -> so it must be filled
            if ( $( strCouponInputSelector ).val().trim().length === 0 )
            {
                onError();
                return false
            }
            else
            {
                if ( !bolResult )
                {
                    removeError( strCouponInputID );
                    
                    $.ajax( {
                        type: "POST",
                        dataType: "json",
                        url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
                        global: false,
                        data: {
                            'check_coupon': true,
                            'coupon_code': $( strCouponInputSelector ).val().trim()
                        },
                        success: function ( data )
                        {
                            fnCallback( typeof data[ 'status' ] !== "undefined" && data[ 'status' ] === 'ok' );
                        },
                        error: function ( )
                        {
                            fnCallback( false );
                        }
                    } );
                    return false;
                }
                else
                {
                    return true;
                }
            }
        }
        else
        {
            return true;
        }
    }

	var bolPrevFinished_checkSignInForm = true;

    function trySignIn( strTwoFactorAuthCode )
    {
        if ( typeof strTwoFactorAuthCode === "undefined" )
        {
            strTwoFactorAuthCode = "";
        }

        var jqCaptchaResultInput = $( '#' + strSinginCaptchaContainerID + ' .captcha_response' );

        removeAllErrors( 'signin_error_msg' );
       
        var strReturnUrl = getSigninReturnRedirectUrl();

        var objPostData = {
            'signin': true,
            'username': $( '#l_user' ).val(),
            'password': $( '#l_pass' ).val(),
            'remember_me': $( '#remember_me' ).prop( 'checked' ),
            'from_ico': $( '#register_from_ico' ).val(),
            'add_cookie_uploads': bolAddCookieUploads,
            'recaptcha_response': ( jqCaptchaResultInput.length ? jqCaptchaResultInput.val() : '' )
        };

        if ( strTwoFactorAuthCode )
        {
            objPostData[ 'two_factor_auth_code' ] = strTwoFactorAuthCode;
        }

        if ( strReturnUrl )
        {
            objPostData[ 'override_return_url' ] = strReturnUrl;
        }

        if ( $( "#l_coupon_code" ).css( "display" ) !== "none" )
        {
            objPostData.coupon_code = $( "#l_coupon_code" ).val().trim();
        }

        
        $.ajax( {
            type: "POST",
            dataType: "json",
            url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
            crossDomain: true,
            data: objPostData,
            success: function ( data )
            {
                var strAdditionalMessage = "";
                
                if ( typeof data[ 'login_attempts_left' ] !== 'undefined' )
                {
                    var strPartOne = +data[ 'login_attempts_left' ] === 1 ? ' You have ' : ' You have ';
                    var strPartTwo = +data[ 'login_attempts_left' ] === 1 ? ' login attempt left before your account is automatically blocked.' : ' more login attempts before your account is automatically blocked.';

                    strAdditionalMessage = strPartOne + data[ 'login_attempts_left' ] + strPartTwo;
                }
                
                if ( ( data[ 'status' ] === 'ok' || data[ 'status' ] === 'missing_account_data' ) && typeof data[ 'redirect_to' ] !== 'undefined' )
                {
                    
                    if ( data[ 'redirect_to' ].substring( 0, 17 ) == '/lifetime-storage' )
                    {
                        data[ 'redirect_to' ] += '?after_login';
                    }

                    if ( data[ 'redirect_to' ].substring( 0, 6 ) == '/token' )
                    {
                        data[ 'redirect_to' ] = '/token';
                    }

                    window.location = data[ 'redirect_to' ];
                }
                else if ( data[ 'status' ] === 'invalid_auth_code' )
                {
                    $( '#twofactor_error_msg' ).text( 'The entered code is invalid! Please try again!' + strAdditionalMessage ).show();
                    bolPrevFinished_checkSignInForm = true;
                    $( '#sign-in_disable_form' ).hide();
                }
                else
                {
                    var $errorCont;
                    if( strTwoFactorAuthCode )
                    {
                        $errorCont = $( '#twofactor_error_msg' );
                    }
                    else
                    {
                        $errorCont = $( '#signin_error_msg' );
                    }
                    
                    if ( typeof data[ "message" ] === "undefined" )
                    {
                       $errorCont.text( 'Incorrect username or password! Access can be restored via your email address.' + strAdditionalMessage );
                       console.log( 'SIGNIN ERROR CODE : 1' );
                    }
                    else
                    {
                        $errorCont.text( data[ "message" ] + strAdditionalMessage );
                    }
                    $errorCont.show();

                    bolPrevFinished_checkSignInForm = true;
                    $( '#sign-in_disable_form' ).hide();
                }
            },
            error: function ( data )
            {

                $( '#signin_error_msg' ).text( 'An error occurred. Please try again or contact [email protected]!' );
                $( '#signin_error_msg' ).show();

                bolPrevFinished_checkSignInForm = true;
                $( '#sign-in_disable_form' ).hide();
            }
        } );
    }

    function show2FAPrompt()
    {
        $( '#createaccount-modal-content' ).hide();
        $( '#forgotpassword-modal-content' ).hide();
        $( '#addcookieuploads-modal-content' ).hide();
        $( '#createaccountsuccessmessage-modal-content' ).hide();
        $( '#signin-modal-content' ).hide();

        $( '#twofactor_authcode-modal-content' ).show();
    }
    
	function checkSignInForm(bolCouponCheckResult) {

		if ( bolCouponCheckResult === undefined )
		{
			bolCouponCheckResult = null;
		}
        
        var jqCaptchaResultInput = $('#' + strSinginCaptchaContainerID + ' .captcha_response');
        
		if (bolPrevFinished_checkSignInForm) {

			bolPrevFinished_checkSignInForm = false;
            $('#sign-in_disable_form').show();
            
            if ( $( "#l_coupon_code" ).css("display") !== "none" )
            {
                if ( bolCouponCheckResult )
                {
                    $( "#signin_error_msg" ).hide();
                }
                else if ( bolCouponCheckResult === null )
                {
                    bolPrevFinished_checkSignInForm = true;
                    return verifyCouponCode( "l_coupon_code", "signin_error_msg", checkSignInForm, bolCouponCheckResult );
                }
                else
                {
                    $( "#signin_error_msg" )
                        .text( "The coupon code you entered is invalid or already used!" )
                        .show();
                    bolPrevFinished_checkSignInForm = true;
                    $( '#sign-in_disable_form' ).hide();
                    return false;
                }
            }
                
			bolError = false;

			if ($('#l_user').val() == '' ) {

				$('#l_user').addClass( 'has_error' );
				bolError = true;
			}
			else {
				$('#l_user').removeClass( 'has_error' );
			}

			if ($('#l_pass').val() == '' ) {
				$('#l_pass').addClass( 'has_error' );
				bolError = true;
			}
			else {
				$('#l_pass').removeClass( 'has_error' );
			}
            
            
            if ( bolSigninCaptchaRequired )
            {
                if ( jqCaptchaResultInput.length === 0 )
                {
                    bolError = true;
    
                    addError(strSinginCaptchaContainerID, "signin_error_msg", "An error has occurred! Please check your internet connection and try again later. If the problem does not resolve, please contact [email protected]");
                }
                else if ( jqCaptchaResultInput.val().length === 0 )
                {
                    bolError = true;
    
                    addError(strSinginCaptchaContainerID, "signin_error_msg", "Please fill in the captcha field!");
                }
                else
                {
                    removeError( strSinginCaptchaContainerID );
                }
            }

			if (!bolError) {

				$.ajax({
					type: "POST",
					dataType: "json",
					url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
                    crossDomain: true,
                    data: {
						'check_signin' : true ,
						'username' : $('#l_user').val() ,
						'password' : $('#l_pass').val()
					},
					success: function(data) {
                        if ( data[ 'status' ] === 'ok' )
                        {
                            if ( bolHasCookieUploads == true && bolAddCookieUploadsAnswered == false && data[ 'show_add_cookie_uploads' ] == true )
                            {
                                strActiveForm = 'signin';
                                showAddCookieUploads();

                                bolPrevFinished_checkSignInForm = true;
                                $( '#sign-in_disable_form' ).hide();
                            }
                            else
                            {
                                trySignIn();
                            }
                        }
                        else if ( data[ 'status' ] === 'requires_auth_code' )
                        {
                            $( '#sign-in_disable_form' ).hide();
                            bolPrevFinished_checkSignInForm = true;
                            
                            show2FAPrompt();
                        }
                        else
                        {
                            var strMessage = 'Incorrect username or password! Access can be restored via your email address.';

                            if ( typeof data[ 'message' ] !== "undefined" )
                            {
                                strMessage = data[ 'message' ];
                            } 
                            else if ( typeof data[ 'login_attempts_left' ] !== 'undefined' ) 
                            {
                                var strPartOne = +data['login_attempts_left'] === 1 ? ' You have ' : ' You have ';
                                var strPartTwo = +data['login_attempts_left'] === 1 ? ' login attempt left before your account is automatically blocked.' : ' more login attempts before your account is automatically blocked.';
                                
                                strMessage += strPartOne + data[ 'login_attempts_left' ]  + strPartTwo;
                            }
                            else
                            {
                                console.log( 'SIGNIN ERROR CODE : 2' );
                            }

                            $( '#signin_error_msg' ).text( strMessage );
							$('#signin_error_msg').show();

							bolPrevFinished_checkSignInForm = true;
							$('#sign-in_disable_form').hide();
						}
					} ,
					error: function(data) {

						$('#signin_error_msg').text('An error occurred. Please try again or contact [email protected]!');
						$('#signin_error_msg').show();

						bolPrevFinished_checkSignInForm = true;
						$('#sign-in_disable_form').hide();
					}
				});
			}
			else {

				bolPrevFinished_checkSignInForm = true;
				$('#sign-in_disable_form').hide();
			}
		}
	}


	function checkForgotPasswordForm() {

		if (!validateEmail($('#forgotpassword_email').val())) {

			addError('forgotpassword_email', 'forgotpassword_error_msg', 'Enter a valid e-mail!');
		}
		else {

			removeError('forgotpassword_email');

			$.ajax({
				type: "POST",
				dataType: "json",
				url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
				data: {
					'recover_password' : true ,
					'email' : $('#forgotpassword_email').val()
				},
				success: function(data) {
					if (data['status'] == 'ok') {

						removeAllErrors('forgotpassword_error_msg');

						$('#forgotpassword_error_msg').addClass('ok_msg_active');
						$('#forgotpassword_error_msg').text('If an account with this email exists, then the password reset link was sent to the email provided.');
						$('#forgotpassword_error_msg').show();
					}
					else {

						addError('forgotpassword_email', 'forgotpassword_error_msg', 'This e-mail is not registered.');
					}
				}
			});
		}
	}

	function checkSocialLogin(strType) {
	
		if ( strType == 'facebook' )
		{
			fError( 'Facebook has changed something, so unfortunately logging in with Facebook is not available at the moment. To get in, reset the password to your e-mail (with which you used Facebook) <a href="/?a#forgot_password">by clicking here</a> . In the future, we recommend using your email or Google account so that you are not dependent on Facebook. We plan to disable this method.' );
			return;
		}

		if (bolHasCookieUploads == true && bolAddCookieUploadsAnswered == false) {

			strActiveForm = strType;
			showAddCookieUploads();
		}
		else {

			if ($('.dont_redirect_after_login').val() == 'true')
			{
				$('#sendfiles').submit();
				$('.add_anonym_uplaods').val('true');
			}

			if (strType == 'facebook') {

				$('#login_facebook').submit();
			}
			else if (strType == 'google') {

				$('#login_google').submit();
			}
			else if (strType == 'draugiem') {

				$('#login_draugiem').submit();
			}
			else if (strType == 'microsoft') {

				$('#login_microsoft').submit();
			}

		}
	}


	function validateEmail(email) {
		var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
		var result = re.test(email);
		return result;
	}

	function validateUsername(username) {

		var re = /^[a-zA-Z0-9_\.@\-]+$/;
		var result = re.test(username);
		return result;
	}
    
    function addHTMLError(strDomId, strErrorMsgId, strErrorMsgText) {
        $('#' + strDomId).addClass( 'has_error' );
        $('#' + strErrorMsgId).html(strErrorMsgText);
        $('#' + strErrorMsgId).show();
    }

	function addError(strDomId, strErrorMsgId, strErrorMsgText) {
		$('#' + strDomId).addClass( 'has_error' );
		$('#' + strErrorMsgId).text(strErrorMsgText);
		$('#' + strErrorMsgId).show();
	}

	function removeError(strInputId) {
		$('#' + strInputId).removeClass( 'has_error' );
	}

	function removeAllErrors(strErrorMsgId) {
		$('#' + strErrorMsgId).text('');
		$('#' + strErrorMsgId).hide();
	}

	var isUsernameChanged = false;
	function usernameChanged()
	{
		isUsernameChanged = true;
	}

	function createUsername(strEmail)
	{
		if( !isUsernameChanged && strEmail != '' && validateEmail(strEmail))
		{
			var arrEmail = strEmail.split("@");

			var strUsername = arrEmail[0];
			while (strUsername.length < 4)
			{
				strUsername += '1';
			}


			$.ajax(
			{
				type: "POST",
				dataType: "json",
				url: "./ajax/sign_in.php?PHPSESSID=2387bf0829a130dcbae74cf0fe0ea55a0f39e778",
				data:
				{
					'get_username' : true ,
					'username' : strUsername
				},
				success: function(data)
				{
					if (data['status'] == 'ok' && data['username'])
					{
						$('#createaccount_username').val(data['username']);
					}
				}
			});
		}
	}

	var bolCreateBusinessAccount = false;
	function toggleCreateBusinessAccount()
	{
		if (bolCreateBusinessAccount)
		{
			bolCreateBusinessAccount = false;
			$('#create_business_account_container').hide();
		}
		else
		{
			bolCreateBusinessAccount = true;
			$('#create_business_account_container').show();
		}
	}


    
    </script>
<div id="content">
<script>
	
	var objTranslationsIndex = {
    	'RESEND-ACTIVATE-USER-TEXT' : 'This activation link is no longer valid. To activate your account request a new activation link.' ,
    	'RESEND-ACTIVATE-USER-HEADER' : 'Account activation link has expired!' ,
    	'RESEND-ACTIVATE-USER-ACCEPT' : 'Request new activation link' ,
    	'RESEND-ACTIVATE-USER-DECLINE' : 'Cancel' ,
        'LIST-ALERT-EmailIsSent' : 'E-mail has been sent!' ,
        'COMPANY-USERS-SomethingWentWrong' : 'Something went wrong. Please try again.' ,
		'INDEX-UploadFileHasVirus' : 'The file is infected and will be deleted!' ,
		'INDEX-UploadFileSizeLimitExceed' : 'File not uploaded, file size limit exceeded!' ,
		'INDEX-UploadSizeLimitExceed' : 'File upload failed because the upload size limit was exceeded!' ,
		'INDEX-UploadFileSizeError' : 'There was a network error. Please retry the upload.' ,
		'INDEX-Alert-FileHasDoubleExtensions' : 'This filename has a double extension. Please rename the file and repeat the upload!' ,
		'INDEX-UploadQueueTooLarge' : 'Maximum upload size exceeded for this type of account. Please upgrade to Pro or Business plan: <a href=’/storage-plans’ target=’_blank’>https://files.fm/storage-plans</a>' ,
        'INDEX-FileUploadFinishTime' : 'Finishes in [time_left]' ,
        'INDEX-FileUploadWaitingOnConnection' : 'Waiting for network. Turn on WIFI. [seconds_left]' ,
        'INDEX-FileUploadRestarting' : 'Restarting this file. Keep your browser open' ,
        'INDEX-FileUploadComplete' : 'Complete' ,
        'INDEX-FileMove' : 'Processing' ,
        'INDEX-FileCanceled' : 'Canceled' ,
        'INDEX-FileAntivirus' : 'Virus check' ,
        'INDEX-FileSizeExceeded' : 'File Too Large' ,
        'INDEX-AddMoreFiles' : 'Add more files' ,
        'INDEX-UPLOAD-FileSizeText' : 'Files {NUMFILES}, size {SIZE}' ,
        'INDEX-Alert-FileCountLimitExceeded-One' : 'Only one file is allowed! Please remove the extra files!' ,
        'INDEX-UPLOAD-TimeDuration-Around' : 'around' ,
        'INDEX-UPLOAD-UploadedFiles-From' : 'from' ,
        'INDEX-EdgeBrowser-FileTooLarge' : 'Microsoft Edge does not support uploading large files, please use another browser!' ,
        'INDEX-Alert-FileHasDoubleExtensions' : 'This filename has a double extension. Please rename the file and repeat the upload!' ,
        'INDEX-WindowCloseConfirm' : 'Files are being uploaded, are you sure you wish to cancel the upload?' ,
        'INDEX-EnterEmail-Button' : 'Enter e-mail' ,
        'GENERAL-SKIP' : 'Skip' ,
        'INDEX-PleaseFillThisField' : 'Please fill this field' ,
        'INDEX-EnterYourEmailToReceive-Desc' : 'Please, enter your e-mail to receive admin link you can use to add or <b>delete</b> files. You and the recipients will receive a reminder about file deletion deadline' ,
        'EMAILS-WERE-SENT-TO' : 'E-mails were sent to' ,
        'EMAILS-NOT-SENT' : 'Failed to send e-mails!' ,
        'EMAILS-WERE-NOT-SENT-TO' : 'E-mails weren’t sent to' ,
        'EMAIL-SENDING-UNSUBSCRIBED-DESCRIPTION' : 'We weren’t able to send all e-mails because some of the recipients have opted out of receiving files.fm sharing emails. To share files with these e-mail addresses, please inform their owners to change their accounts privacy settings.' ,
        'INDEX-AftferUploadError' : 'An error occurred while saving the upload. Please contact [email protected]!' ,
        'INDEX-EnterYourEmail' : 'Enter email to receive add/edit/delete link' ,
        'INDEX-EnterMoreEmails' : 'Enter emails to send access link to and deadline reminder' ,
        'INDEX-EmailMaybeIncorrectSuggest' : 'Did you mean:' ,
        'INDEX-EmailMaybeIncorrectNoMxSuggest' : 'These addresses can be wrong:' ,
        'INDEX-EmailMaybeIncorrect' : 'Please make sure the entered email addresses are correct! If all emails are correct, press ’Save and send the link’ again.' ,
        'INDEX-EmailIncorrectOrMissing' : 'One of the e-mails was entered incorrectly or does not exist. Enter your email in the first field. You can send up to 200 emails at once. Separate multiple emails with a comma.' ,
        'INDEX-ReceiveFiles-Popup-Desc' : 'By pressing the "Receive files", you will create a new folder, where others can add files. You can send the folder link to other people from whom you want to receive content. Anyone who opens this link can upload files to this folder, but cannot delete them.</br></br> You will find the new folder with the received files in the "My files" section.' ,
        'INDEX-ReceiveFiles-Popup-Header' : 'What is Receive files?' ,
        'GENERAL-CONTINUE' : 'Continue' ,
        'GENERAL-ABORT' : 'Cancel' ,
        'INDEX-CreateAccount-InfoText' : 'To store files permanently, create or sign in with a user account. Files will be linked to this account. More convenient.' ,
        'INDEX-EnterYourEmail' : 'Enter email to receive add/edit/delete link' ,
        'INDEX-RegisterToSetPassword' : 'This option is available if you have an account. To change your file access settings, create or log in to your account and then change the folder settings.' ,
        'INDEX-RegisterBuyToSetPassword' : 'This option is available to PRO and Business account subscribers. To change your file access settings, create or log in to your account, subscribe to a PRO or Business account and change the folder settings.' ,
        'INDEX-PleaseFillThisField' : 'Please fill this field' ,
        'INDEX-RegisterToSetPassword' : 'This option is available if you have an account. To change your file access settings, create or log in to your account and then change the folder settings.' ,
        'INDEX-RegisterBuyToSetPassword' : 'This option is available to PRO and Business account subscribers. To change your file access settings, create or log in to your account, subscribe to a PRO or Business account and change the folder settings.' ,
        'PROFILE-AccountDeleted' : 'Your user account is deleted.' ,
        'PROFILE-CHECK-ACTIVATE-Error' : 'An error occurred while activating your account. Please try again or contact [email protected]' ,
        'PROFILE-CHECK-ACTIVATE-User-Deleted' : 'This profile has been deleted and can no longer be activated!' ,
        'EMAIL-NOTIFICATION-DISABLE_SUCCESS' : 'Successfully disabled e-mail notifications.' ,
        'EMAIL-NOTIFICATION-DISABLE_FAIL' : 'Couldn’t disable email notifications. The site you were visiting might have been invalid. Please try again.' ,
        'SMS-NOTIFICATION-DISABLE_SUCCESS' : 'We have successfully disabled SMS sending.' ,
        'SMS-NOTIFICATION-DISABLE_FAIL' : 'Failed to disable SMS sending. The link you followed may be invalid. Please try again.' ,
	};
    
    var bolFotoDrukaUpload = false;
    var strServerHttpHost = 'files.fm';
    var intMyQueueSizeLimitMb = 20480;
    var intMyFileSizeLimitMb = 5120;
    var strUploadSaveServer = 'free.files.fm';
    var strServerHost = 'fv1-10.failiem.lv';
    var bolIsReplaceFileVersionUpload = false;
    var strReplaceFileVersionUpload_FileHash = '';
    var strReplaceFileVersionUpload_ReturnToAfter = '';
	var intSimUploadLimit = 2;
	var bolServerHttpHostIsFailiemLv = false;
	var PHPSESSID = '2387bf0829a130dcbae74cf0fe0ea55a0f39e778';
	var bolIsFileUploadToExistingUpload = false;
	var strFileUploadToExistingUpload_UploadHash = '';
	var strFileUploadToExistingUpload_UploadAddFileKey = '';
	var bolBergaFotoUpload = false;
	var bolBergaFoto_FullSchoolUpload = false;
	var bolBergaFoto_AddToSchoolFolder = false;
	var strUploadButtonText = 'Upload files';
	var bolSessionUser_IsEnterpriseOrg = false;
	var bolIsWordpressGalleryModule = false;
	var bolDontAskUploadInfo = false;
	var bolSessionUser_IsLoggedIn = false;
	var bolFotoProductsUpload = false;
	var bolPhotobookUpload = false;
	var bolEparakstsUpload = false;
	var intUserMaxPerUploadShareAtOnce = '200';
	var strSessionUser_Email = '';
	var bolReceiveLinkPopupShown = false;
	var bolSessionUser_IsStorageSubscriber = false;
	var arrExecutableFileExtensions = [ 'exe','com','dll','pif','scr','bat','bin','pl','sh','scf','sct','shs','vb','lnk','jnlp','apk','vbs','js','msi','jse','jar','dmg','bin','wsf' ];
	var arrFileExtensions = [ 'jpg','jpeg','gif','png','bmp','svg','webp','ico','jfif','heic','heif','tiff','tif','ac3','aac','aif','aiff','air','mp3','wav','flac','oga','aac','m4a','wma','opus','wpl','m3u','ac3','opus','wpl','m4a','avi','mpg','mpeg','rm','wmv','asf','mp4','mov','flv','3gp','divx','rmvb','ogg','mkv','ogv','webm','m4v','mts','lrf','odt','ods','odp','doc','docx','pdf','xls','xlsx','ppt','pptx','pps','ppsx','rtf','dwg','dxf','txt','php','js','html','css','xml','csv','ini','fb2','epub','edoc','asice','dotx','7z','bz','bz2','bzip','cab','cpio','gz','iso','lha','lz','lzh','lzma','rar','tar','taz','tbz','tbz2','tgz','tlz','txz','tz','xar','xz','z','zip','toast','vcd','exe','com','dll','pif','scr','bat','bin','pl','sh','scf','sct','shs','vb','lnk','jnlp','apk','vbs','js','msi','jse','jar','dmg','bin','wsf' ];
	var bolShowAlertSuccess_AccountDeleted = false;
	var bolShowUserResendConfirmationEmailError = false;
	var bolShowAlertError_ActivationUserDeleted = false;
	var bolShowAlertSuccess_MailTypeUnsubscribed = false;
	var bolShowAlertError_MailTypeUnsubscribedFail = false;
    var bolShowAlertSuccess_SMSTypeUnsubscribed = false;
    var bolShowAlertError_SMSTypeUnsubscribedFail = false;
	var bolShowUserResendConfirmationEmailPopup = false;
	var intShowUserResendConfirmationEmailPopup_UserId = 0;
	var bolShowGift_CreateAccount = false;

    var objOrganizationUserEmails = {
        };

    
    

    var objLibrary;

    $( function ()
    {
        objLibrary = new Library(
            {
                type : '' ,
                fee : '' ,
            } ,
            {
                session_user_logged_in : false ,
                session_user_username : '' ,
                rand_seed : 1952917992 ,
            } ,
            {
                'LIBRARY_GENERIC_ERROR': 'Something went wrong!',
                'LIBRARY_LOAD-ERROR': 'Sorry, something went wrong. Please, reload this page.',
                'LIBRARY_SEARCH-MIN-LENGTH': 'Please enter at least 3 characters!',
                'LIBRARY_SEARCH-PLACEHOLDER': 'search for files by tags, name or description',
                'LIBRARY_EMPTY-SEARCH-RESULTS': ' We did not find any file!',
                'LIBRARY_SEARCH-HINT': 'Try searching for a single word or disabling section filters!',
                'LIBRARY_SEARCH-ERROR-DESC': 'Please try again later!',
                'PUBLIC-PROFILE-Views': 'Views',
                'PUBLIC-PROFILE-Image': 'Images',
                'PUBLIC-PROFILE-Video': 'Videos',
                'PUBLIC-PROFILE-Document': 'Documents',
                'PUBLIC-PROFILE-Audio': 'Audios',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Follow': 'Follow',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Register': 'Register',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Apply': 'Apply',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Unfollow': 'Unfollow',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Unregister': 'Unregister',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Unapply': 'Opt out',
                'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Following': 'Following',
                'LIST-FILE-TOOLTIP-DOWNLOADED-COUNT': 'downloads',
                'LIST-FILE-TOOLTIP-VIEWED-COUNT': 'views',
                'LIST-LINK-Update-Price': 'Sell',
                'LIST-LINK-Buy': 'Buy',
                'LIST-ITEM-FUNCTIONS-PriceFrom': 'from',
                'UPLOAD-ACTION-LINE-CopyLink': 'Share access link',
                'UPLOAD-ACTION-LINE-EmbedLink': 'Embed links',
                'GALLERY-FileReportCancelConfirm': 'Are you sure you want to cancel the report on a dangerous file?',
                'GALLERY-CancelReport': 'Cancel a problem report',
                'GALLERY-Report': 'Report a problem',
                'GALLERY-FileReportConfirm': 'Are you sure you want to report the content of this file as dangerous?',
                'LIST-LINK-DownloadFile': 'Download',
                'LIST-LINK-ViewFile': 'View',
                'LIST-OrderPhotoText': '',
                'LIST-LINK-PlayFile': 'Play',
                'LIST-LINK-CommentFile': 'Comment',
                'LIST-LINK-LikeFile': 'Like',
                'LIST-LINK-UnlikeFile': 'Unlike',
                'PRINTING-ORDER-FORM-Crop-Label': '',
                'LIST-ITEM-Folders': 'folders',
                'LIST-ITEM-Files': 'files',
                'LIST-ITEM-ItemViewsTitle': 'views',
                'LIST-ITEM-ItemCommentsTitle': 'comments',
                'LIST-ITEM-ItemLikesTitle': 'likes',
                'LIST-LINK-DELETE-FILE': 'Delete',
                'LIST-CONFIRM-DELETE-FILE': 'Do you really want to delete this file?',
                'LIST-LINK-DELETE-FILE-Yes': 'Yes, delete!',
                'LIST-LINK-DELETE-FILE-No': 'Cancel',
                'LIST-FlDelPart1': 'File',
                'LIST-FlDelPart2': 'has been <b>deleted</b>!',
                'List-UnableToDeleteFileReadOnly': 'The file cannot be deleted because it is shared!',
                'List-UnableToDeleteLockedFile': 'This file cannot be deleted because it is locked.',
                'LIST-UnableToDeleteFile': 'There was an error, the file was not deleted',
                'PROFILE-LOGED-UPL-ACTION-DELETE-UPLOAD': 'Delete folder',
                'PROFILE-LOGED-UPL-ACTION-DELETE-CONFIRM-TEXT': 'Are you sure you want to delete all the files in this folder?',
                'PROFILE-LOGED-UPL-ACTION-DELETE-DONE': 'Folder has been deleted!',
                'PROFILE-DELETE_MULTIPLE_ERROR': 'There was an error deleting one of the folders!',
                'UPLOAD-ACTION-LINE-CopyLink-Short': 'Share',
                'FILE-BROWSER-OpenTab': 'Open in new tab',
            }
        );

        objLibrary.loadTopProfiles( 6 );
    } );
        
</script>
<link rel="stylesheet" type="text/css" media="all" href="/js/uploadify/uploadifive.css?v=1715343643"><link rel="stylesheet" type="text/css" media="all" href="/css/landing.css?v=1728644492">
<script src="/js/client_detection.js?v=1715343642"></script>
<script src="/js/uploadify/jquery.uploadifive.custom_folderupload.js?v=1728466405"></script>
<script src="/js/index.js?v=1727356031"></script>
<script src="/js/landing.js?v=1715343639"></script>
<script src="/js/library/library.js?v=1726237286"></script>
<input type="hidden" id="upload_hash" value="">
<section id="landing-section" class=" ">
<div class="container">
<div class="content">
<div id="file_upload_title_wrap" class=" flex">

<div id="before_file_upload">
<div id="main_page_top_header_1_carousel">
<div>
<h1 class="main_page_top_header_1 arrow">
The easiest way to <span>store and share</span>
</h1>
<div class="file_types">
Photos
<div class="file_types_seperator">|</div>
Videos
<div class="file_types_seperator">|</div>
Audio
<div class="file_types_seperator">|</div>
Documents
</div>
</div>
<h1 class="main_page_top_header_1">
The fastest way to transfer <span>large files</span>
</h1>
<h1 class="main_page_top_header_1">
Subscribe to <span>secure</span> storage and <span>faster</span> speeds
</h1> </div>
</div>


<div id="upload-box-outer">

<div class="upload_waiting top">
<div class="during_file_upload__title">
<img src="/images/landing/upload_cloud_red_comb.svg" alt="File upload">Uploading... </div>
<div>Keep your browser open</div>
</div>
<div id="text_during_file_upload">
<div id="during_file_upload">
<div id="download_link_wrapper_0">
<div id="download_link_0"></div>
<div class="copy_button_wrapper">
<div id="copy_button_0" class="copy_button">
<div class="copy_text">
<div class="hover mobile">Copy</div>
<div class="hover">Copy link</div>
<div class="copied">Copied</div>
</div>
</div>
<div class="copy_button_drawer">
<div id="drawer_copy_button_0" class="checked">
<span>Copy link to view</span>
<span class="desc">View and download rights</span>
</div>
<div id="drawer_edit_button_0">
<span>Copy edit link</span>
<span class="desc">Can add, edit content, e-sign and delete</span>
</div>
<div id="drawer_receive_button_0">
<span>Copy link to add</span>
<span class="desc">One can add files, but not delete or edit existing</span>
</div>
</div>
</div>
</div>
</div>
</div>


<div id="after_file_upload_wodpress_gallery">
<p id="after_file_upload_wodpress_gallery_text_1">Your files are successfully uploaded</p>
<br>
<a href="javascript:void(0);" id="after_file_upload_wodpress_gallery_button" class="standard_button"><i class="fa fa-bolt" aria-hidden="true"></i>Insert this gallery into content</a>
<br>
<div id="wordpress_shortcode_wrapper">
<p id="wordpress_shortcode_title">The gallery`s shortcode:</p>
<input id="wordpress_shortcode">
</div>
</div>


<div id="after_file_upload">
<div class="after_file_upload__title">
Complete! Email or share the link: </div>
<form method="post" action="list.php" id="submit_form">
<div id="download_link_wrapper">
<div id="download_link"></div>
<div class="copy_button_wrapper">
<div id="copy_button" class="copy_button">
<div class="copy_text">
<div class="hover mobile">Copy</div>
<div class="hover">Copy link</div>
<div class="copied">Copied</div>
</div>
</div>
<div class="copy_button_drawer">
<div id="drawer_copy_button" class="checked">
<span>Copy link to view</span>
<span class="desc">View and download rights</span>
</div>
<div id="drawer_edit_button">
<span>Copy edit link</span>
<span class="desc">Can add, edit content, e-sign and delete</span>
</div>
<div id="drawer_receive_button">
<span>Copy link to add</span>
<span class="desc">One can add files, but not delete or edit existing</span>
</div>
</div>
</div>
<a id="link_button" target="_blank" class="link_button" onclick="gaev( 'Index-Upload-Form', 'link-button',  'design' );">Design</a>
</div>
<div id="sender_mail_tt_wrap" class="full-width input-label">
<label for="sender_mail_tt" class="info">You will receive delete link and reminder</label>
<label for="sender_mail_tt">Your e-mail</label>
<input type="text" size="72" name="me" id="sender_mail_tt" value="" placeholder="Enter email to receive add/edit/delete link" onclick="gaev( 'Index-Upload-Form', 'Your-Email', strServerHttpHost );">
</div>

<div id="recepients_emails_wrap" class="full-width input-label">
<label for="recepients_emails" class="info">Separate multiple emails with a comma</label>
<label for="recepients_emails">Recipient e-mails</label>
<input type="text" size="72" name="e" id="recepients_emails" onkeyup="" placeholder="Enter emails to send access link to and deadline reminder" onclick="gaev( 'Index-Upload-Form', 'Receiver-Email', strServerHttpHost );" class="ui-autocomplete-input" autocomplete="off">
</div>


<div id="after_file_save__folder_name" class="full-width input-label">
<label for="display_name">Folder name</label>
<input name="display_name" id="display_name">
<img src="/images/landing/form/edit_blue.svg" class="my_tooltip" my_title="Edit">
</div>


<div id="after_file_save_adddescription">
<textarea cols="69" rows="2" name="mailtext" id="send_tt" placeholder="Add a file description, shown in the e-mail and when accessing the files"></textarea>
</div>


<div id="after_file_save_access_rights" class="input-label">
<label for="file_save_access_rights">Access</label>
<div class="styled-select">
<select name="file_save_access_rights" id="file_save_access_rights">
<option value="">&nbsp;</option>
<option value="LINK" selected="selected">Anyone with a link</option>
<option value="PASSWORD">Set password</option>
<option value="PRIVATE">Private only for me</option>
<option value="PUBLIC">Published on my profile page</option>
</select>
<div class="select-selected">Anyone with a link</div><div class="select-items select-hide"><div id="file_save_access_rights_LINK">Anyone with a link</div><div id="file_save_access_rights_PASSWORD">Set password</div><div id="file_save_access_rights_PRIVATE">Private only for me</div><div id="file_save_access_rights_PUBLIC">Published on my profile page</div></div></div>
</div>


<div id="after_file_save_storage_deadline" class="input-label">
<label for="days_to_save_files">How long to keep files</label>
<div class="styled-select">
<select name="days_to_save_files" id="days_to_save_files">
<option value="2">2 days</option>
<option value="-1">Permanently</option>
<option value="1">1 day</option>
<option value="3">3 days</option>
<option value="7">1 week</option>
<option value="14" selected="selected">2 weeks</option>
<option value="31">1 month</option>
<option value="62">2 months</option>
</select>
<div class="select-selected">2 weeks</div><div class="select-items select-hide"><div id="days_to_save_files_-1">Permanently</div><div id="days_to_save_files_1">1 day</div><div id="days_to_save_files_3">3 days</div><div id="days_to_save_files_7">1 week</div><div id="days_to_save_files_14">2 weeks</div><div id="days_to_save_files_31">1 month</div><div id="days_to_save_files_62">2 months</div></div></div>
</div>


<div id="after_file_save_password" class="input-label">
<label for="upload_password">Password</label>
<input name="upload_password" id="upload_password" placeholder="Enter a password">
</div>


<button type="submit" id="sendfiles" class="upload_button">
Save &amp; send link <img src="/images/landing/send.svg" alt="Save and send">
</button>

<input type="hidden" name="del_key" id="del_key">
</form>
</div>


<div id="upload_total_progress">
<div class="estimated-time">Finish <span class="value"></span></div>
<div class="speed-progress">
<span class="speed-progress_label">Average speed</span>
<span class="value"></span>
</div>
<div class="uploaded-files">Uploaded: <span class="value"></span></div>
<div class="progress-bar">
<div class="progress-bar-inner"></div>
</div>
<div class="upload-size"></div>
</div>


<div id="upload_box_inner">
<div id="savefiles">
<div class="upload_button uploadify_start_upoad_button start_upload_button">
<span class="cloud">
<img class="cloud" src="/images/landing/upload_cloud_white.svg" alt="Start file upload">
<img class="cloud-arrow" src="/images/landing/upload_cloud_white_arrow.svg" alt="Start file upload">
</span>
Start file upload </div>
</div>
<div id="file_adding_container">
<div id="file_select_button">
<div id="uploadifive-file_upload" class="uploadifive-button upload_button" style="height: 30px; line-height: 30px; overflow: hidden; position: relative; text-align: center; width: 100px;"><span class="select_files_button_text"><img class="cloud-white" src="/images/landing/upload_cloud.svg" alt="Upload files"> Upload files</span><input id="file_upload" name="file_upload[]" type="file" multiple="multiple"><input type="file" style="opacity: 0; position: absolute; z-index: 999;" multiple="multiple"></div>
</div>
<div id="file_select_dragndrop_text" class="file_select_dragndrop_text">
or drag and drop files and folders </div>
<div class="file_select_dragndrop_text mobile">
Upload and send files securely. You will get a link to share. </div>
</div>
<div id="simple_file_select_button"></div>
</div>


<div id="receive_files_wrapper">
<div id="receive_files_button" onclick="gaev( 'Index-Upload-Form', 'Receive-Files', strServerHttpHost );">
Receive files </div>
<div id="receive_files_desc">Create folder to receive files from others</div>
</div>


<div class="upload_waiting bottom not-shown">
Select files and wait for a list to appear here </div>


<div id="upload_stats_text"></div>


<div id="upload_file_list"></div>

</div>

</div>


<div class="product-icons spacing">
<a class="product-icon-card apps" href="/sync-share" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'Store' );">
<div class="product-icon-name-wrap">
<div class="product-icon"></div>
<div class="product-icon-name">Storage apps</div>
</div>
<div class="product-icon-desc">Use Web, Desktop and Mobile apps to access Your cloud storage</div>
<div class="product-icon-learn">Learn more</div>
</a>
<a class="product-icon-card public" href="/public-profiles" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'Publish' );">
<div class="product-icon-name-wrap">
<div class="product-icon"></div>
<div class="product-icon-name">Publish</div>
</div>
<div class="product-icon-desc">Create public galleries and showcase your portfolio</div>
<div class="product-icon-learn">Learn more</div>
</a>
<a class="product-icon-card sell" href="/sell-files" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'Sell' );">
<div class="product-icon-name-wrap">
<div class="product-icon"></div>
<div class="product-icon-name">Sell</div>
</div>
<div class="product-icon-desc">Sell ​​your digital content privately or publicly</div>
<div class="product-icon-learn">Learn more</div>
</a>
<a class="product-icon-card esign " href="/eparaksts" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'eSign' );">
<div class="product-icon-name-wrap">
<div class="product-icon"></div>
<div class="product-icon-name">eSign</div>
</div>
<div class="product-icon-desc">Sign, preview and easily share e-documents</div>
<div class="product-icon-learn">Learn more</div>
</a>
</div>


</div>
</div>
</section>

<section id="library" class="info-block">
<div class="article">
<h2>Explore content shared by <span>community</span></h2>
<div id="library_profiles_scroll" class="for_scroll">
<div id="library_profiles">
                
                
                
                
                
                
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=119186571.jpg&amp;t=1729091580), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/marcoszanutto" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=71aa48b_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/marcoszanutto" target="_blank" class="profile_name">Marcos Zanutto - Photography</a>
                    </div>
                    <div class="profile_details profile-119186571">
                        <div class="profile_detail">1.4K Views</div>
                        <div class="profile_detail profile_detail_file_stats">616 Images</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/marcoszanutto?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('marcoszanutto?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/marcoszanutto?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Follow</span>
                            <span class="text_following">Following</span>
                            <span class="text_unfollow">Unfollow</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=119077783.jpg&amp;t=1729091580), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/ventinsphotography" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=718fb97_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/ventinsphotography" target="_blank" class="profile_name">Ventins Photography</a>
                    </div>
                    <div class="profile_details profile-119077783">
                        <div class="profile_detail">6.2K Views</div>
                        <div class="profile_detail profile_detail_file_stats">4K Images</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/ventinsphotography?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('ventinsphotography?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/ventinsphotography?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Follow</span>
                            <span class="text_following">Following</span>
                            <span class="text_unfollow">Unfollow</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=116496348.jpg&amp;t=1729091580), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/zavadskis" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=6f197dc_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/zavadskis" target="_blank" class="profile_name">Photographer Andrejs Zavadskis</a>
                    </div>
                    <div class="profile_details profile-116496348">
                        <div class="profile_detail">39K Views</div>
                        <div class="profile_detail profile_detail_file_stats">5.7K Images</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/zavadskis?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('zavadskis?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/zavadskis?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Follow</span>
                            <span class="text_following">Following</span>
                            <span class="text_unfollow">Unfollow</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=116562043.png&amp;t=1729091580), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/gulfregatta" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=6f2987b_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/gulfregatta" target="_blank" class="profile_name">gulfregatta</a>
                    </div>
                    <div class="profile_details profile-116562043">
                        <div class="profile_detail">11.5K Views</div>
                        <div class="profile_detail profile_detail_file_stats">10K Images</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/gulfregatta?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('gulfregatta?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/gulfregatta?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Follow</span>
                            <span class="text_following">Following</span>
                            <span class="text_unfollow">Unfollow</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=119380825.jpg&amp;t=1729091580), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/apmedia" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=71d9b59_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/apmedia" target="_blank" class="profile_name">AP Media</a>
                    </div>
                    <div class="profile_details profile-119380825">
                        <div class="profile_detail">12.5K Views</div>
                        <div class="profile_detail profile_detail_file_stats">3.2K Videos</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/apmedia?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('apmedia?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/apmedia?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Follow</span>
                            <span class="text_following">Following</span>
                            <span class="text_unfollow">Unfollow</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/csbimagery" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=71e3991_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/csbimagery" target="_blank" class="profile_name">csbimagery</a>
                    </div>
                    <div class="profile_details profile-119421329">
                        <div class="profile_detail">2.6K Views</div>
                        <div class="profile_detail profile_detail_file_stats">1.1K Videos</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/csbimagery?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('csbimagery?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/csbimagery?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Follow</span>
                            <span class="text_following">Following</span>
                            <span class="text_unfollow">Unfollow</span>
                        </div>
                    </div>
                </div>
            </div></div>
</div>
<div class="library_button" onclick="gaev( 'Index-InfoPage', 'Library', 'Explore' ); window.open( '/discover', '_self' )">
Explore all </div>
</div>
</section>

<section id="one_platform" class="info-block">
<div class="image-grid article">
<div class="image-grid-item dual image">
<img src="images/landing/articles-with-pictures/Files.fm-cloud-storage-platform-Zavadskis.webp" alt="File upload and file sharing cloud storage platform">
</div>
<div class="image-grid-item dual content">
<h2><span>A single platform</span> for your content</h2>
<img class="mobile" src="images/landing/articles-with-pictures/Files.fm-cloud-storage-platform-Zavadskis.webp" alt="File upload and file sharing cloud storage platform">
<div class="file_types">
Photos <div class="file_types_seperator">|</div>
Videos <div class="file_types_seperator">|</div>
Audio <div class="file_types_seperator">|</div>
Documents <div class="file_types_seperator">|</div>
and others </div>
<div class="items-pro">
<div class="item-pro">Transfer large files in full quality</div>
<div class="item-pro">Subscribe to unlimited cloud storage</div>
<div class="item-pro">Automatically backup your content</div>
<div class="item-pro">Share beautiful galleries</div>
<div class="item-pro">Publish content on your profile page</div>
<div class="item-pro">Sell digital and accept payments</div>
<div class="item-pro">Control access rights</div>
</div>
<div class="one_platform_button" onclick="gaev( 'Index-InfoPage', 'One Platform', 'Get Started' ); showCreateAccount(); return false;">
Get started free </div>
</div>
</div>
</section>


<section id="info-block_pricing-plans" class="info-block">
<div class="container">
<h2>Subscribe as much storage space as you need!</h2>
<link rel="stylesheet" type="text/css" media="all" href="/css/elements/pricing_v2.css?v=11">
<div class="pricing" id="pricing">
<h2>Upgrade your account for more storage and features</h2>
<div class="pricing-flex pricing">
<div id="free" class="pricing-flex-item">
<div>
<ul>
<li class="name">Basic</li>
<li class="price_wrap">
<div class="price">$0</div>
</li>
<li><b>20GB for a month</b></li>
<li>5GB file size</li>
<li>Private sharing with users</li>
<li>Receive files Inbox</li>
<li>Customisable content page and sales</li>
<li>RAW to JPG conversion</li>
<li>Convert videos to MP4</li>
<li>Convert docs to PDF</li>
</ul>
<div>
<a href="#" class="button" style="font-weight: bold;" onclick="gaev( 'Index-InfoPage', 'Free', 'Signup-Free' ); showCreateAccount(); return false;">
Get started free </a>
</div>
</div>
</div>

<hr class="three-by-one">
<div id="pro" class="pricing-flex-item  ">
<div class="banner">Most popular features</div>
<div>
<ul>
<li class="name">PRO</li>
<li class="price_wrap">
<div class="price">
$7.9 <span>/month</span>
</div>
</li>
<li>2TB cloud storage + add more</li>
<li>3 x faster speed</li>
<li>Ad-free sharing</li>
<li>20GB file size</li>
<li>30 days Undelete</li>
<li>Set passwords on links</li>
<li>Access control</li>
<li>Unlimited p2p data traffic</li>
<li>Online Document Editing</li>
</ul>
<div>
<a href="#" class="button red" onclick="gaev( 'Index-InfoPage', 'Pro', 'Signup-Pro' ); $( '.login_return_url' ).val( 'storage-plans#subscribe' ); showCreateAccount(); return false;">
Upgrade to PRO </a>
</div>
</div>
</div>

<hr class="three-by-one">
<div id="team" class="pricing-flex-item">
<div>
<ul>
<li class="name">TEAM</li>
<li class="price_wrap">
<div class="price">
$19 <span>/month</span>
</div>
<div class="price">+ VAT</div>
</li>
<li><b>2TB+ and 4 users included</b></li>
<li>200GB file size</li>
<li>File access and activity log</li>
<li>File versioning</li>
<li>File recovery up to 5 years</li>
<li>2FA and security settings</li>

<li>Activity and file access log</li>
<li>Business tech support</li>
</ul>
<div>
<a href="#" class="button" onclick="gaev( 'Index-InfoPage' , 'Team', 'Signup-Team' ); $( '.login_return_url' ).val( 'storage-plans#subscribe' ); showCreateAccount(); return false;">
Subscribe to TEAM </a>
</div>
</div>
</div>
</div>
</div>

</div>
</section>


<section id="install-apps">
<div class="article">
<img class="title-image" src="images/landing/articles-with-pictures/2-devices.webp" alt="Devices" loading="lazy">
<h2 class="install-apps">
Use Files.fm on any device and never run out of storage space </h2>
<div class="product-icons">
<a class="product-icon" href="#" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'My-Files' ); showCreateAccount(); return false;">
<img src="images/UI_icons/home_filled.svg" alt="My Files" loading="lazy">
Web </a>
<a class="product-icon" href="#" download="" target="_blank" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'Windows' ); showCreateAccount(); return false;">
<img src="images/UI_icons/windows.svg" alt="Windows File sync app" loading="lazy">
Windows </a>
<a class="product-icon" href="https://play.google.com/store/apps/details?id=com.files.fm" target="_blank" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'Android' );">
<img src="images/UI_icons/android.svg" alt="Android Files app" loading="lazy">
Android </a>
<a class="product-icon" href="https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796" target="_blank" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'iOS' );">
<img src="images/UI_icons/apple.svg" alt="iOS File upload app" loading="lazy">
iOS </a>
<a class="product-icon" href="#" download="" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'Mac' ); showCreateAccount(); return false;">
<img src="images/UI_icons/apple.svg" alt="Mac" loading="lazy">
macOS </a>
</div>
</div>
</section>

<section id="client_infinite_try">

<div class="article client-logos">
<h2>The <span>security and protection</span> of your data is our priority</h2>
<div class="text">
Files.fm has more than 16 years of experience in developing data storage solutions.<br> Apply for a free consultation on business and security solutions. </div>
<div class="container">
<a href="https://www.chamber.lv/" target="_blank">
<img src="images/filebox/logos/new2/LTRK.png?v=2" alt="LTRK" loading="lazy">
</a>
<a href="https://www.sprk.gov.lv/" target="_blank">
<img src="images/filebox/logos/new2/SPRK.png?v=2" alt="SPRK" loading="lazy">
</a>
<a href="https://likta.lv/" target="_blank">
<img src="images/filebox/logos/new2/LIKTA.png?v=2" alt="LATVIJAS INFORMĀCIJAS UN KOMUNIKĀCIJAS TEHNOLOĢIJAS ASOCIĀCIJA" loading="lazy">
</a>
<a href="https://www.itbaltic.com/" target="_blank">
<img src="images/filebox/logos/new2/IT-cluster.png?v=2" alt="IT klasteris" loading="lazy">
</a>
<a href="https://www.arcers.lv/" target="_blank">
<img src="images/filebox/logos/new2/arcers.png?v=2" alt="Arčers" loading="lazy">
</a>
<a href="https://lff.lv/" target="_blank">
<img src="images/filebox/logos/new2/LFF.png" alt="LFF" loading="lazy">
</a>
<a href="https://ltv.lsm.lv/lv/" target="_blank">
<img src="images/filebox/logos/new2/ltv.png?v=2" alt="LTV" loading="lazy">
</a>
<a href="https://www.sigulda.lv/public/lat/pasvaldiba/dome/" target="_blank">
<img src="images/filebox/logos/new2/sigulda.png?v=2" alt="Siguldas pašvaldība" loading="lazy">
</a>
<a href="https://www.eparaksts.lv/lv/" target="_blank">
<img src="images/filebox/logos/new2/eparaksts.png?v=2" alt="Eparaksts" loading="lazy">
</a>
<a href="https://www.lvrtc.lv/" target="_blank">
<img src="images/filebox/logos/new2/LVRTC.png?v=2" alt="Latvia State Radio and Television Centre" loading="lazy">
</a>
<a href="http://www.fsmetta.lv/" target="_blank">
<img src="images/filebox/logos/new2/fkmetta.png?v=2" alt="Metta" loading="lazy">
</a>
<a href="https://ec.europa.eu/easme/en/innosup" target="_blank">
<img src="images/filebox/logos/new2/europe_h2020_program.png?v=2" alt="The Horizon 2020 INNOSUP programme aims to test new approaches for better innovation support through funding opportunities for innovation actors across Europe." loading="lazy">
</a>
<a href="https://developer.microsoft.com/" target="_blank">
<img src="images/filebox/logos/new2/microsoft_cloud_storage_partner.png?v=2" alt="Microsoft cloud storage partner" loading="lazy">
</a>
<a href="https://www.e-shelter.de/en" target="_blank">
<img style="height: 20px" src="images/filebox/logos/new2/e-shelter.png?v=2" alt="e-shelter is part of the Global Data Centers division of NTT and develops and runs high availability data centers." loading="lazy">
</a>
<a href="https://www.tet.lv" target="_blank">
<img src="images/filebox/logos/new2/lattelecom_tet_v2.png?v=2" alt="TET data centers" loading="lazy">
</a>
<a href="https://blockvis.com" target="_blank">
<img src="images/filebox/logos/new2/blockvis.com-logo.png?v=2" alt="Blockvis data experts" loading="lazy">
</a>
</div>
<div class="privacy_items">
<div class="item_text">
Your files are stored in secure data centers in Europe, in accordance with the GDPR data regulation. </div>
<div class="item_text">
We apply multi-level security solutions and provide fault-tolerant architecture, depending on the account level. </div>
<div class="item_text">
We use the latest encryption and authentication technologies in our systems to ensure full security of your data. </div>
<div class="item_text">
Protect your data by subscribing to a business account and take advantage of 5 years of backups and security logs! </div>
</div>
</div>


<div id="infinite" class="article">
<h2>One platform, unlimited possibilities</h2>
<div class="text">
PRO Cloud Storage for Digital Content Creators </div>
<div class="infinite_items">
<div class="item_card">
<img src="images/landing/feature-1.webp" alt="features" loading="lazy">
<div class="title">Useful tools for every file type</div>
<div class="desc">Whether you create photos, videos, music or documents, we enable seamless handling of all file types</div>
</div>
<div class="item_card">
<img src="images/landing/feature-2.webp" alt="photos" loading="lazy">
<div class="title">Photos and videos in high quality</div>
<div class="desc">Share images from sport games and other events for participants to download in high resolution</div>
</div>
<div class="item_card">
<img src="images/landing/feature-3.webp" alt="private" loading="lazy">
<div class="title">Private galleries for your clients</div>
<div class="desc">Create beautiful galleries and securely share it to them for convenient preview and download</div>
</div>
<div class="item_card">
<img src="images/landing/feature-4.webp" alt="public" loading="lazy">
<div class="title">Customisable public page to showcase your content</div>
<div class="desc">Publish your portfolio or create a public gallery with or without download option</div>
</div>
<div class="item_card">
<img src="images/landing/feature-5.webp" alt="store" loading="lazy">
<div class="title">Store and share your knowledge and creativity</div>
<div class="desc">Video course, e-book, podcast, design - whatever you are good at - store, share or sell it with ease</div>
</div>
<div class="item_card">
<img src="images/landing/feature-6.webp" alt="tools" loading="lazy">
<div class="title">Tools to sell and monetise your content</div>
<div class="desc">Set up price and sell your content publicly or privately. Specify usage rights, view statistics and receive money</div>
</div>
</div>
</div>


<div class="try_or_start try_or_start_repeat">
<div class="try_or_start_create_account_header">
Create an account and get more features! </div>
<div class="sell_files_buttons_text">
<div class="sell_files_bottom_buttons">
<div class="try_or_start_button" onclick="gaev( 'Index-InfoPage', 'Visit demo', 'Sell-Demo-Bottom' ); showCreateAccount(); return false;">
Get started </div>
</div>
<div class="sell_files_pointed_text" onclick="window.open( '/terms', '_blank' )">
<div class="sell_files_pointed_text_inner">
<div class="sell_files_pointed_text_pointer"></div>
Sign up and get cloud storage, securely share files and sell digital content </div>
</div>
</div>
</div>

</section>

<section class="info-block" id="topfeatures">
<div class="container">
<div class="image-grid">
<div class="image-grid-item dual content">
<h2>
Why <span>choose files.fm</span> and subscribe </h2>
<img class="mobile" src="images/landing/articles-with-pictures/3-why-choose.webp" alt="Securely Store">
<div class="items-pro-wrap">
<div class="items-pro-more" onclick="$(this).parent().addClass('open');">Show more</div>
<div class="items-pro-less" onclick="$(this).parent().removeClass('open');">Collapse</div>
<div class="items-pro">
<div class="item-pro">Private data storage at a good price</div>
<div class="item-pro">Unlimited traffic and fast parallel uploads</div>
<div class="item-pro">Preview and stream photo, video, audio content</div>
<div class="item-pro">Automatic convert RAW to JPG. Video to MP4. Docs to PDF</div>
<div class="item-pro">Online Document editing and collaboration</div>
<div class="item-pro">Automatic Antivirus scans</div>
<div class="item-pro">Tools to sell content and receive payments</div>
<div class="item-pro">Secure and General Data Protection Regulation compliant</div>
<div class="item-pro">Multi-gigabyte transfers while maintaining quality</div>
<div class="item-pro">Set passwords on links and expiration dates</div>
<div class="item-pro">Automatic synchronization and backup. Recover deleted files.</div>
<div class="item-pro">e-signature support, comments and file tagging</div>
<div class="item-pro">Disable file downloads - view only mode</div>
<div class="item-pro">Advanced search. Tag and EXIF ​​support. AI image recognition.</div>
<div class="item-pro">Detailed log of activities, file access and download analytics</div>
<div class="item-pro">Content embedding and API integrations</div>
</div>
</div>
</div>
<div class="image-grid-item dual image">
<img src="images/landing/articles-with-pictures/3-why-choose.webp" alt="Securely Store">
</div>
</div>
</div>
</section>


<div class="arrow bounce hidden">
<a class="" href="#">
<img id="scroll-down" onclick="gaev( 'Index-InfoPage', 'Scroll-Down', 'Scroll-Arrow' );" src="images/landing/arrow-down-button.svg" alt="⌄">
</a>
</div>


</div>
<link rel="stylesheet" type="text/css" media="all" href="/css/footer.css?v=16">
<div id="footer_container">
<div id="footer" class="clearfix">
<div class="footer_block footer_block_left">
<div class="float_left">
<p class="header">2008 - 2024 <img src="images/european-flag.svg" width="24" height="24" alt="Files.fm EU Cloud storage">
EU Files.fm cloud storage </p>
<p>The Files.fm cloud storage platform offers comprehensive solutions for storing, sharing, publishing, and even selling various types of content, including photos, videos, music, applications, books, and documents.</p>
<div id="files_socials">
<a class="social_icon facebook" href="https://www.facebook.com/Filesfm/" target="_blank"></a>
<a class="social_icon linkedin" href="https://lv.linkedin.com/company/files.fm" target="_blank"></a>
<a class="social_icon instagram" href="https://www.instagram.com/files.fm/" target="_blank"></a>
<a class="social_icon twitter" href="https://twitter.com/files_fm" target="_blank"></a>
<a class="social_icon tiktok" href="https://www.tiktok.com/@files.fm" target="_blank"></a>
</div>

</div>
</div>
<div class="footer_block_right">
<div class="footer_block">
<div class="footer_title">
Get started </div>
<ul>
<li>
<a href="" onclick="showCreateAccount(); return false;">Create account / Login</a>
</li>
<li>
<a href="storage-plans">Pricing</a>
</li>
<li>
<a href="/business">Business</a>
</li>
<li>
<a href="/data-security" target="_blank">Data security</a>
</li>
<li>
<a href="terms">Terms</a>
</li>
<li>
<a href="questions-about-online-file-storage">Questions</a>
</li>
<li>
<a href="/token">Files.fm Token</a>
</li>
</ul>
</div>
<div class="footer_block">
<div class="footer_title">
Solutions </div>
<ul>
<li>
<a href="/sync-share">File sync</a>
</li>
<li>
<a href="/backup">Encrypted Backups</a>
</li>
<li>
<a href="upload-form" target="_blank">File upload form</a>
</li>
<li>
<a href="https://files.fm/servers" target="_blank">Virtual servers</a>
</li>
<li>
<a href="/sell-files">Content sales e-commerce</a>
</li>
<li>
<a href="/public-profiles" target="_blank">Content publishing</a>
</li>
</ul>
</div>
<div class="footer_block">
<div class="footer_title">
Apps </div>
<ul>
<li>
Mobile:
<a href="https://play.google.com/store/apps/details?id=com.files.fm" target="_blank"> Android </a>
 |
<a href="https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796" target="_blank"> Apple iOS </a>
</li>
<li>
Sync:
<a href="/sync-share#setup">Windows | MacOS</a>
</li>

<li>
<a href="?convert-to-pdf">Convert to PDF</a> | <a href="?convert-to-mp4">Convert to MP4</a>
</li>
<li>
<a href="/webdav-info">Webdav network drive</a>
</li><li>
<a href="/discover" target="_blank">Files.fm Public Content</a>
</li>
</ul>
</div>
<div class="footer_block">
<div class="footer_title">
Support </div>
<ul>
<li>
<a href="https://forum.files.fm/" target="_blank">User forum</a>
</li>
<li>
<a href="https://discord.gg/BCTJyNZABJ" target="_blank">Discord chat</a>
</li>
<li>
<a href="./contacts">Contact us</a>
</li>
<li>
<a href="about">About Files.fm</a>
</li>
<li>
<a href="./api.php">API for Developers</a>
</li>
</ul>
</div>
</div>
<p class="header_below">2008 - 2024 EU Files.fm cloud storage</p>
</div>

</div>
</div>
<div id="info_tooltip_global"></div>
<script>
    function CloseSuggestion(id) {
        
        if (id == 'suggest_lang') {
            $.get("includes/suggest_language.php", {sLang: 1});
        }
        else if (id == 'suggest_register'){
            $.get("includes/suggest_language.php", {sReg: 1});
        }
        
        document.getElementById(id).style.display='none';
    }
</script>
<script>
        
        $(window).bind("load", function() {
            $( "#register_from_ico" ).val( 0 );
            if	(window.location.hash == '#sign_up') {
                
                showCreateAccount();
            }
            else if	(window.location.hash == '#log_in') {
                
                showSignIn();
            }
            else if	(window.location.hash == '#forgot_password') {
                
                showForgotPassword();
            }
        });
    
    </script>
<div id="files_970x90_sticky_anchorad_responsive">
<script>
        if ( typeof googletag != 'undefined' && typeof googletag.cmd != 'undefined' )
        {
            googletag.cmd.push(function() { googletag.display('files_970x90_sticky_anchorad_responsive'); });
        }
    </script>
</div>
<script>
    window.addEventListener("stpdRendered", function (e) {
        var adName =  e.detail.name;
        var adWinner = e.detail.winner;
        var cleanEventName = adName.split('/')[2];

        if ( ( (cleanEventName == "files_970x90_sticky_anchorad_desktop") || (cleanEventName == "files_320x100_sticky_anchorad_mobile") ) && (adWinner != "passback")  ) {
            setTimeout(function () {
                var anchorParent = top.document.querySelector("#files_970x90_sticky_anchorad_responsive");
                var anchorIframe = top.document.querySelector("#files_970x90_sticky_anchorad_responsive > div > iframe");
                var anchorClose = top.document.querySelector("#stpd_close");
                if(window.innerWidth > 1000) {
                    anchorParent.style.cssText += "width: " + (anchorIframe.clientWidth + 100) + "px";
                    anchorClose.style.cssText += "width: 40px; height: 35px; padding-top: 5px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255);";
                } else {
                    anchorClose.style.cssText += "width: 30px; height: 30px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255); top: -40px;";
                }
            }, 50);
        }
    });
</script>
<script>
    window.addEventListener("stpdRendered", function (e) {
        var adName =  e.detail.name;
        var adWinner = e.detail.winner;
        var cleanEventName = adName.split('/')[2];

        if ( ( (cleanEventName == "failiem_970x90_sticky_anchorad_desktop") || (cleanEventName == "failiem_320x100_sticky_anchorad_mobile") ) && (adWinner != "passback")  ) {
            setTimeout(function () {
                var anchorParent = top.document.querySelector("#failiem_970x90_sticky_anchorad_responsive");
                var anchorIframe = top.document.querySelector("#failiem_970x90_sticky_anchorad_responsive > div > iframe");
                var anchorClose = top.document.querySelector("#stpd_close");
                if(window.innerWidth > 1000) {
                    anchorParent.style.cssText += "width: " + (anchorIframe.clientWidth + 100) + "px";
                    anchorClose.style.cssText += "width: 40px; height: 35px; padding-top: 5px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255);";
                } else {
                    anchorClose.style.cssText += "width: 30px; height: 30px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255); top: -40px;";
                }
            }, 50);
        }
    });
</script>

<div id="footer_bottom_floating_line" class="  cookies_msg_active  ">
<div id="footer_bottom_floating_line__cookies">
<div id="footer_bottom_floating_line__cookies__text">
By using this website, you agree to Files.fm <a href="https://files.fm/terms" target="_blank">terms</a> and <a href="https://files.fm/privacy-policy" target="_blank">cookie policy.</a> </div>
<button id="footer_bottom_floating_line__cookies__ok_btn" onclick="gaev('CookiePolicy', 'CloseButton', ''); $('#footer_bottom_floating_line__cookies').hide(); document.cookie='cookie_info_closed=true; max-age=31536000'; $( '#footer_bottom_floating_line' ).removeClass( 'cookies_msg_active' );">
OK </button>
</div>
</div>
<script src="/js/inputs.js?v=1715343640"></script>
<script defer="" src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;rayId&quot;:&quot;8d38fd796cf03851&quot;,&quot;version&quot;:&quot;2024.10.1&quot;,&quot;serverTiming&quot;:{&quot;name&quot;:{&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfSpeedBrain&quot;:true,&quot;cfCacheStatus&quot;:true}},&quot;token&quot;:&quot;920d49a89d024a45b0d7a0081fbadb80&quot;,&quot;b&quot;:1}" crossorigin="anonymous"></script>


<ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" id="ui-id-1" tabindex="0" style="display: none;"></ul><span role="status" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"></span></body></html>