Skip to content

WIP: Upload Funktion

abbashan03 requested to merge New_Media_Proposals into master

Deutsch

Upload Funktion

1.0 Funktion

Wir haben die Funktion hinzugefügt Dateien wie zum Beispiel Bilder oder Textdokumente in die Posts einzufügen. Das uploaden der Dateien funktioniert in der Form, dass man die entsprechende Datei in einem externem Fenster, zu dem du mit Publisch kommt, auswählst. Wen du die Datei ausgewählt hast, bekommt du einen link mit dem Namen des Bildes daneben. Du hast eine Tabelle in der auch andere Bilder, die du davor hinzugefügt hattest, siehst und wiederverwenden kannst. Du kannst auch die Dateien jederzeit von der Tabelle entfernen. Wen du den link hast, musst du ihn einfach kopieren und dann in deinen post einfügen. Dan wird die Datei, wie zum Beispiel ein Bild angezeigt an der Postion, an der du den link getan hast.

1.1 Dateiarten

Man hat die Möglichkeiten verschiedene Dateiarten in einen post hinzuzufügen diese lauten:

.pdf; .jpg; .img; .ogg; mp4; .txt und weitere folgt noch

Technisch information von Upload

Die Upload Funktion funktioniert mit dem folgende Model. Die Dateien werden über eine API Hochgeladen. POST, lädt die neue Datei hoch und mit einem GET wird dir die Datei unter der CID wiedergegeben. Und mit DELETE kannst du die Datei unter der CID löschen, wen man der Besitzer der Datei ist. Wir haben auch NGINX hinzugefügt und angefangen es zu benutzen. NGINX ist eine Webserver Software und ein Proxy. Dank NGINX haben wir einen Endpunkt, der von den Benutzern erreicht wird und im Hintergrund könne wir Weiterleitungen machen und immer weiter skalieren. NGINX wird von sehr vielen Seiten verwendet und kann für die zukünftigen schritte vorteilhaft sein.

Englisch

Upload function

1.0 Function

We have added the function to insert files such as images or text documents into the posts. Uploading the files works in the form that you select the corresponding file in an external window, which you come to with Publisch. When you have selected the file, you will get a link with the name of the picture next to it. You have a table in which you can see the image and other images that you added before. You can also remove the files from the table at any time. If you have the link, you just have to copy it and then paste it into your post. Then the file, such as a picture, is displayed at the position where you made the link.

1.1 File types

You have the possibility to add different types of files to a post:

.pdf; .jpg; .img; .ogg; mp4; .txt and more come later

Technical information from upload

The upload function works with the following model. The files are uploaded via an API. POST, uploads the new file and with a GET the file is played back to you under the CID. And with DELETE you can delete the file under the CID who is the owner of the file. We also added NGINX and started using it. NGINX is a web server software and a proxy. Thanks to NGINX we have an endpoint that can be reached by the users and in the background we can make redirects and continue to scale. NGINX is used by many people and can be useful for future steps.

Merge request reports