Sending large files outside the company

Suppliers and clients get files via WeTransfer and personal Drive. A corporate alternative: encrypted links, expiry, download caps and a sending record.

A corporate document centre is a library: company-wide, permanent, organised by category. Policies, procedures and forms belong there. But "I need to get this 180 MB deck to the supplier tomorrow" is a different job — that file belongs neither in the library nor in permanent storage.

In most companies that job is done with WeTransfer, personal Drive accounts, or a zipped archive attached to an email. The outcome is always the same: company data leaves for a place the company cannot see.

Blocking is not the answer

The first instinct is usually to block file-sharing sites at the firewall. This does not end the practice — it only makes it invisible. An employee with a deadline forwards the file to a personal mailbox and sends it from home, or uploads it from a phone.

The rule of shadow IT is simple: an unmet need gets met through an invisible route until it is met properly. The same thing happened with messaging; the way out was never to shut the group down but to offer something better.

So the real question is whether a corporate option can be as easy as the consumer one.

Three layers of access

For the sender it is one screen: pick the file, set a password, choose how many days the link stays valid, copy the link. Behind it there are three separate layers, and all three are enforced on the server:

1. The token. The random string in the address. Unguessable, but not sufficient on its own.

2. The password. Set by the sender and stored only as a hash. One detail matters here: the password is written nowhere — not into the link, not into browser storage, not into the record. The sender passes it to the recipient through a separate channel. Putting the password next to the link makes the password meaningless.

3. Expiry, download count and revocation. The link stops working after a set number of days, the number of downloads can be capped, and the sender can revoke it at any time.

None of this is checked in the browser. The form gives quick feedback, but the download request goes through a server endpoint and the signed download address is issued only after all three conditions pass. A check bypassed in the browser is not a problem here, because the real check sits behind it.

Why the password hash lives in a separate table

This looks like over-engineering until you work through it.

Authorisation in most databases is enforced per row, not per column. If the password hash sat on the transfer's own row, anyone who could read that row — the sender, and any administrator — could read the hash too. An administrator could take the hash of a password they were never told and try to crack it offline.

So the secrets belong in a separate table that ordinary users have no read access to at all: written by one narrow server-side function, read only by the server. This is the same principle covered in a GDPR and KVKK compliant intranet: hiding a field in the interface is not a control, the restriction has to live with the data.

The token, by contrast, does stay on the sender's row — the sender has to be able to copy the link again. Knowing the token alone does not allow a download; the password is still required.

What happens when the link expires

Two different things get confused here, and the distinction matters in an audit:

  • When the access period ends, the link stops working. This is checked on the server at every download request.
  • Physically deleting the file from storage is a separate job that needs a scheduled clean-up task.

Treating them as the same thing and saying "files are destroyed automatically" is a promise that does not hold if no clean-up is running. Keep the distinction explicit: the question an auditor asks is not "was the link closed" but "when was the data deleted".

Define the size limit in one place

A small but expensive detail: the upload size limit usually lives in three places at once — the warning in the interface, the check on the server, and the storage layer's own ceiling. When the three are written separately, the user sees "50 MB maximum", tries a 48 MB file, and gets a meaningless error from the storage layer.

Limits should be read from a single definition, and if there is a per-company setting it must not be allowed to exceed the absolute ceiling.

Visibility is the real advantage

The corporate option beats the consumer one on visibility, not convenience. A file sent from a personal account leaves no trace inside the company: who sent what, to whom, and when — none of it is known. When that employee leaves, the history goes with them.

In a corporate flow the record stays. When a client refers to "the price list you sent us", it is possible to find which version went out. The same reasoning applies to any administrative action worth recording: the event matters, and so does the fact that the record of it cannot be edited afterwards.

Where to start

  1. Measure. Ask IT how many people visited file-sharing sites last month. In most companies the number is three times the estimate.
  2. Set a threshold. How large can an email attachment be? What route does anything above it take?
  3. Write down the password rule. "The password is never sent through the same channel as the link" is the most useful line in the policy.
  4. Think about the recipient. If the other side has to create an account, the flow breaks down; a link plus a password is the only model that asks nothing of them.

File sharing is the most concrete of all information-security topics: something an employee does weekly, where the consequences are invisible and mistakes cannot be undone. Offering an easy alternative tends to work faster than training on its own. If identity and account lifecycle are part of the same project, identity and directory integration covers the other half — closing the account closes the sending route with it.