Files
core/File Formats.go
Akilan Selvacoumar ae5f1d2fd7 New features (#110)
* added upload status

* added changes for progress bar with more logs and bug fixes, Documentation yet to be added

* huge changes that need more doucmenting

* added possibility to get profile using NodeID

* added fix profile listing user profile information

* removed profile image from the explore reult struct

* saving current changes

* added filter to search based on NodeID

* Monday bug fixing

* updates to the profile

* changes for tracing the blockchain profile image not shown

* added condition to ensure TAG is not sent and removed debug prints

* updated webapi docs
2023-06-28 00:38:17 +01:00

51 lines
1.9 KiB
Go

/*
File Username: File Formats.go
Copyright: 2021 Peernet s.r.o.
Author: Peter Kleissner
Definition of all recognized file formats. This file is likely being updated more frequently than regular code.
*/
package core
// General content types of data.
const (
TypeBinary = iota // Binary/unspecified
TypeText // Plain text
TypePicture // Picture of any format
TypeVideo // Video
TypeAudio // Audio
TypeDocument // Any document file, including office documents, PDFs, power point, spreadsheets
TypeExecutable // Any executable file, OS independent
TypeContainer // Container files like ZIP, RAR, TAR, ISO
TypeCompressed // Compressed files like GZ, BZ
TypeFolder // Virtual folder
TypeEbook // Ebook
)
// File formats. New ones may be added to the list as required.
const (
FormatBinary = iota // Binary/unspecified
FormatPDF // PDF document
FormatWord // Word document
FormatExcel // Excel
FormatPowerpoint // Powerpoint
FormatPicture // Pictures (including GIF, excluding icons)
FormatAudio // Audio files
FormatVideo // Video files
FormatContainer // Compressed files including ZIP, RAR, TAR and others
FormatHTML // HTML file
FormatText // Text file
FormatEbook // Ebook file
FormatCompressed // Compressed file
FormatDatabase // Database file
FormatEmail // Single email
FormatCSV // CSV file
FormatFolder // Virtual folder
FormatExecutable // Executable file
FormatInstaller // Installer
FormatAPK // APK
FormatISO // ISO
FormatPeernetSearch // Peernet Search
)