...
Tabela 1 - Valores de armazenamento conforme norma IEC 80000-13 : 2008 |
---|
Potência de base 2 | gibibyte (GiB) | mebibyte (MiB) | quibibyte (KiB) | Bytes | bits |
---|
20 | 0 | 0 | 0 | 0 | 1 |
---|
21 | 0 | 0 | 0 | 0 | 2 |
---|
23 | 0 | 0 | 0 | 1 | 8 |
---|
210 | 0 | 0 | 1 | 1024 | 8192 |
---|
220 | 0 | 0 | 1024 | 1048576 | 8388608 |
---|
230 | 1 | 1024 | 1048576 | 1073741824 | 8589934592 |
---|
231 | 2 | 2048 | 2097152 | 2147483648 | 17179869184 |
---|
Tabela 2 - Múltiplos do Byte |
---|
HTML |
---|
<table class="infobox" style="padding: 0; text-align: left; width: 0">
<tbody>
<tr>
<th colspan="3" style="background-color:#ddf; text-align: center;"><a href="https://pt.wikipedia.org/wiki/Prefixo_bin%C3%A1rio"
title="Prefixo binário">Prefixo binário</a> (<a
href="https://pt.wikipedia.org/wiki/Comiss%C3%A3o_Eletrot%C3%A9cnica_Internacional"
title="Comissão Eletrotécnica Internacional">IEC</a>)
</th>
<th>
</th>
<th colspan="3" style="background-color:#ddf; text-align: center;"><a
href="https://pt.wikipedia.org/wiki/Sistema_Internacional_de_Unidades" title="Sistema Internacional de Unidades">Prefixo do
SI</a>
</th>
</tr>
<tr>
<th>Nome
</th>
<th>Símbolo
</th>
<th>Múltiplo
</th>
<th>
</th>
<th>Nome
</th>
<th>Símbolo
</th>
<th>Múltiplo
</th>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Byte" title="Byte">byte</a>
</td>
<td>B
</td>
<td>2<sup>0</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Byte" title="Byte">byte</a>
</td>
<td>B
</td>
<td>10<sup>0</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Kibibyte" class="mw-redirect" title="Kibibyte">kibibyte</a>
</td>
<td>KiB
</td>
<td>2<sup>10</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Kilobyte" title="Kilobyte">kilobyte</a>
</td>
<td>kB
</td>
<td>10<sup>3</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/MebiByte" title="MebiByte">mebibyte</a>
</td>
<td>MiB
</td>
<td>2<sup>20</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Megabyte" title="Megabyte">megabyte</a>
</td>
<td>MB
</td>
<td>10<sup>6</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Gibibyte" title="Gibibyte">gibibyte</a>
</td>
<td>GiB
</td>
<td>2<sup>30</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Gigabyte" title="Gigabyte">gigabyte</a>
</td>
<td>GB
</td>
<td>10<sup>9</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Tebibyte" title="Tebibyte">tebibyte</a>
</td>
<td>TiB
</td>
<td>2<sup>40</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Terabyte" title="Terabyte">terabyte</a>
</td>
<td>TB
</td>
<td>10<sup>12</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Pebibyte" title="Pebibyte">pebibyte</a>
</td>
<td>PiB
</td>
<td>2<sup>50</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Petabyte" title="Petabyte">petabyte</a>
</td>
<td>PB
</td>
<td>10<sup>15</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Exbibyte" title="Exbibyte">exbibyte</a>
</td>
<td>EiB
</td>
<td>2<sup>60</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Exabyte" title="Exabyte">exabyte</a>
</td>
<td>EB
</td>
<td>10<sup>18</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Zebibyte" title="Zebibyte">zebibyte</a>
</td>
<td>ZiB
</td>
<td>2<sup>70</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Zettabyte" title="Zettabyte">zettabyte</a>
</td>
<td>ZB
</td>
<td>10<sup>21</sup>
</td>
</tr>
<tr>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Yobibyte" title="Yobibyte">yobibyte</a>
</td>
<td>YiB
</td>
<td>2<sup>80</sup>
</td>
<td>
</td>
<td style="text-align:left;"><a href="https://pt.wikipedia.org/wiki/Yottabyte" title="Yottabyte">yottabyte</a>
</td>
<td>YB
</td>
<td>10<sup>24</sup>
</td>
<td>
</td>
</tr>
</tbody>
</table> |
|
Fórmula
Sabendo que o valor padrão
...
de um 1 GigaBytes
...
é 1073741824 bytes, então pode-se utilizar este valor como constante para multiplicarmos a capacidade.
A fórmula abaixo permite o cálculo rápido e simples do novo valor para o limite de upload desejado para o ambiente fluig.
Vbytes = vGB * 1073741824
Onde:
Vbytes → o novo valor a ser definido no arquivo de configuração domain.xml, no campo max-post-size.
vGB → valor em GigaBytes ao qual pretende-se aumentar a capacidade de upload do ambiente.
1073741824 → valor de 1GB em bytes, utilizado como constante ou referência.
Exemplos.:
Preciso aumentar de 1GB para 2GB a capacidade de upload;
Vbytes = 2 * 1073741824
Vbytes = 2147483648
logo max-post-size="2147483648"
Preciso aumentar de 1GB para 5GBa capacidade de upload;
Vbytes = 5 * 1073741824
Vbytes = 5368709120
logo max-post-size="5368709120"
Informações |
---|
|
Esta documentação é válida a partir da atualização 1.6.5 - Liquid. Se você utiliza uma atualização anterior, ela pode conter informações diferentes das quais você vê na sua plataforma. |
...