summaryrefslogtreecommitdiffstats
path: root/api4/file.go
Commit message (Collapse)AuthorAgeFilesLines
* Do not force downloading of shared public files (#9412)Vasily Naumkin2018-09-211-1/+1
| | | | | I believe we don't need to force downloading of shared public files, because `writeFileResponse` method will compare its MIME type with `MEDIA_CONTENT_TYPES` and output it inline or as attachment automatically. Usually we are share images and it is much more convenient to see them without downloading.
* Changing comparison method. (#9383)Christopher Speller2018-09-101-1/+2
|
* MM-9747: Small fixes for attachments import (#9225)Jesús Espino2018-08-081-0/+1
| | | | | | * MM-9747: Small fixes for attachments import * Adding unit test RootId check in replies
* [MM-10621] Set createAt timestamp on file upload api call to secure upload ↵Saturnino Abril2018-07-281-1/+11
| | | | | | | | order of files (#9170) * set createAt timestamp on file upload api call to secure upload order of files * fix test on plugin hooks
* Fix file streaming to close files. (#9168)Christopher Speller2018-07-261-6/+23
|
* MM-10381: Change the file downloading API to stream file (#9144)Hyeseong Kim2018-07-241-11/+14
| | | | | | | | * Change the file downloading to stream file * Change file downloading to chunk only for preview * Remove unnecessary else case
* Do not close the connection abruptly on too big file uploads (#9083)Jesús Espino2018-07-181-0/+3
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * factor out GetSubpathFromConfig * mv web/subpath.go to utils/subpath.go * serve up web, api and ws on /subpath if configured * pass config to utils.RenderWeb(App)?Error This allows the methods to extract the configured subpath and redirect to the appropriate `/subpath/error` handler. * ensure GetSubpathFromConfig returns trailing slashes deterministically * fix error 404 handling * redirect /subpath to /subpath/ This is necessary for the static handler to match, otherwise none of the registered routes find anything. This also makes it no longer necessary to add trailing slashes in the root router.
* MM-9556 Added ability to upload files without a multipart request (#8306)Harrison Healey2018-02-201-19/+50
| | | | | | * MM-9556 Added ability to upload files without a multipart request * MM-9556 Handled some unusual test behaviour
* ABC-132: sign error page parameters (#8197)Chris2018-02-071-2/+2
| | | | | | * sign error page parameters * add comments
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-221-3/+0
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* Reorganize file util functionality (#7848)Chris2017-11-161-4/+4
| | | | | | | | * reorganize file util functionality * fix api test compilation * fix rebase issue
* more global config ref cleanup (#7802)Chris2017-11-091-1/+1
|
* PLT-7740 Update encoding of filename in file headers (#7552)Joram Wilander2017-10-191-2/+4
| | | | | | * Remove URL escaping of filename in file headers * Add encoding for filename
* Reduce utils.Cfg references (#7650)Chris2017-10-181-6/+6
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* remove global refs from api/api4 (#7496)Chris2017-09-221-8/+8
|
* generate web error when opening an invalid public file link (#7475)Saturnino Abril2017-09-191-0/+2
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-13/+13
|
* APIv4: NewLocAppError -> NewAppError (#7328)George Goldberg2017-08-311-14/+7
|
* PLT-???? Prepare file upload infrastructure for Data Retention. (#7266)George Goldberg2017-08-251-4/+4
| | | | | | | | | | | | | | | | | * Prepare file upload infrastructure for Data Retention. This commit prepares the file upload infrastructure for the data retention feature that is under construction. Changes are: * Move file management code to utils to allow access to it from jobs. * From now on, store all file uploads in a top level folder which is the date of the day on which they were uploaded. This commit is based on Harrison Healey's branch, but updated to work with the latest master. * Use NewAppError
* PLT-7261 Fixed incorrect content type for preview and thumbnail images (#7119)Harrison Healey2017-08-041-2/+5
|
* Fixed downloading of image files (#6934)Harrison Healey2017-07-151-31/+62
| | | | | | | | | | * Fixed downloading of image files * Fixed captitalization * Fixed missing import * Rename image to media
* PLT-6678 Change Cache-Control to private for files (#6660)Harrison Healey2017-06-161-1/+1
|
* PLT-6262 Add config setting to disable file attachments (#6301)Joram Wilander2017-05-041-2/+6
| | | | | | | | | | | | | | * Add config setting to disable file attachments * Add unit tests * Updating UI for no attachments (#6312) * Update UI text on file upload System Console setting (#6313) * Update storage_settings.jsx * Update en.json
* [PLT-6288] add way to view in the browser and not download in apiV4 (#6062)Carlos Tadeu Panato Junior2017-04-201-10/+49
| | | | | | | | * add way to view in the browser and not download * add DetectContentType to get the contenttype for the file * update per review
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-1/+1
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* APIv4: GET /files/{file_id}/public (#5665)Saturnino Abril2017-03-131-0/+43
|
* APIv4: GET /files/{file_id}/info (#5591)Saturnino Abril2017-03-131-0/+22
|
* APIv4: GET /files/{file_id}/preview (#5568)Saturnino Abril2017-03-131-0/+33
| | | patch 1
* Endpoint for APIv4: /files/{file_id}/link (#5607)Saturnino Abril2017-03-111-0/+36
| | | | | | * APIv4: /files/{file_id}/link * updated public link
* Implementation endpoint of APIv4: GET /files/{file_id}/thumbnail (#5553)Saturnino Abril2017-02-281-0/+33
| | | | | | * APIv4: GET /files/{file_id}/thumbnail * added delay time
* Implement upload and get file endpoints for APIv4 (#5396)Joram Wilander2017-02-171-0/+114
* Implement POST /files endpoint for APIv4 * Implement GET /files/{file_id} endpoint for APIv4