Vasily Naumkin
74c92237c0
Do not force downloading of shared public files ( #9412 )
...
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.
2018-09-21 08:22:23 -07:00
Christopher Speller
bb605a6b91
Changing comparison method. ( #9383 )
2018-09-10 15:19:29 +02:00
Jesús Espino
5fbec91c35
MM-9747: Small fixes for attachments import ( #9225 )
...
* MM-9747: Small fixes for attachments import
* Adding unit test RootId check in replies
2018-08-08 12:10:05 +02:00
Saturnino Abril
51dc5fa36e
[MM-10621] Set createAt timestamp on file upload api call to secure upload order of files ( #9170 )
...
* set createAt timestamp on file upload api call to secure upload order of files
* fix test on plugin hooks
2018-07-28 14:27:55 +08:00
Christopher Speller
90e5e279c1
Fix file streaming to close files. ( #9168 )
2018-07-26 10:52:24 -07:00
Hyeseong Kim
8387d92ea2
MM-10381: Change the file downloading API to stream file ( #9144 )
...
* Change the file downloading to stream file
* Change file downloading to chunk only for preview
* Remove unnecessary else case
2018-07-24 11:23:54 -07:00
Jesús Espino
b367b1ff40
Do not close the connection abruptly on too big file uploads ( #9083 )
2018-07-18 10:07:00 +02:00
Jesse Hallam
dd35ad43ca
MM-10370: serve subpath ( #8968 )
...
* 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.
2018-06-21 11:31:51 -07:00
Harrison Healey
babd795d79
MM-9556 Added ability to upload files without a multipart request ( #8306 )
...
* MM-9556 Added ability to upload files without a multipart request
* MM-9556 Handled some unusual test behaviour
2018-02-20 10:41:00 -05:00
Chris
eff65aa05c
ABC-132: sign error page parameters ( #8197 )
...
* sign error page parameters
* add comments
2018-02-07 12:05:46 -05:00
Chris
91bfc72a99
Reduce logging data races, fix MySQL test race condition ( #7994 )
...
* fix races
* revert unintentional change
* fix test as intended
2017-12-22 12:09:33 +00:00
Chris
eb1a00ef5f
Reorganize file util functionality ( #7848 )
...
* reorganize file util functionality
* fix api test compilation
* fix rebase issue
2017-11-16 16:04:27 -05:00
Chris
10c5a927cb
more global config ref cleanup ( #7802 )
2017-11-09 14:46:20 -06:00
Joram Wilander
cbb18479e9
PLT-7740 Update encoding of filename in file headers ( #7552 )
...
* Remove URL escaping of filename in file headers
* Add encoding for filename
2017-10-19 15:01:45 -04:00
Chris
8e19ba029f
Reduce utils.Cfg references ( #7650 )
...
* app.UpdateConfig method
* test fix
* another test fix
* the config override option as-was is just error prone, remove it for now
* derp
2017-10-18 15:36:43 -07:00
Chris
dcf9e96a0b
remove global refs from api/api4 ( #7496 )
2017-09-22 13:54:27 -04:00
Saturnino Abril
0643bf5159
generate web error when opening an invalid public file link ( #7475 )
2017-09-19 08:58:20 -04:00
Christopher Speller
29fca51821
Renaming repo
2017-09-06 23:11:59 -07:00
Chris
1adfd0e9be
app type transition ( #7167 )
2017-09-06 17:12:54 -05:00
George Goldberg
63b10be020
APIv4: NewLocAppError -> NewAppError ( #7328 )
2017-08-31 10:03:16 -04:00
George Goldberg
50fc6e1e9e
PLT-???? Prepare file upload infrastructure for Data Retention. ( #7266 )
...
* 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
2017-08-25 10:38:13 -04:00
Harrison Healey
885c7e277d
PLT-7261 Fixed incorrect content type for preview and thumbnail images ( #7119 )
2017-08-04 09:05:16 -04:00
Harrison Healey
a20ddb4047
Fixed downloading of image files ( #6934 )
...
* Fixed downloading of image files
* Fixed captitalization
* Fixed missing import
* Rename image to media
2017-07-15 02:42:08 +08:00
Harrison Healey
4d4f2cea86
PLT-6678 Change Cache-Control to private for files ( #6660 )
2017-06-16 09:35:15 -07:00
Joram Wilander
49481caf6d
PLT-6262 Add config setting to disable file attachments ( #6301 )
...
* 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
2017-05-04 15:45:19 -04:00
Carlos Tadeu Panato Junior
c94754e94f
[PLT-6288] add way to view in the browser and not download in apiV4 ( #6062 )
...
* add way to view in the browser and not download
* add DetectContentType to get the contenttype for the file
* update per review
2017-04-20 16:34:07 +01:00
Harrison Healey
fb6f2a123c
PLT-5860 Updated copyright date ( #6058 )
...
* 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
2017-04-12 08:27:57 -04:00
Harrison Healey
c7bdce8a66
PLT-5900 Removed automatic configuration of SiteURL ( #5952 )
...
* Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705 )"
This reverts commit a8e68bd890 .
* Removed automatic configuration of SiteURL
* Reverted unintentional config changes
* Updated help text
* Added link to docs in Site URL warning
* Fixed merge conflict
2017-04-04 11:54:52 -04:00
Saturnino Abril
aafc63933a
APIv4: GET /files/{file_id}/public ( #5665 )
2017-03-13 17:13:48 -04:00
Saturnino Abril
3cbe05e0f4
APIv4: GET /files/{file_id}/info ( #5591 )
2017-03-13 16:34:43 -04:00
Saturnino Abril
8b59a2a291
APIv4: GET /files/{file_id}/preview ( #5568 )
...
patch 1
2017-03-13 15:40:32 -04:00
Saturnino Abril
d32334cdfb
Endpoint for APIv4: /files/{file_id}/link ( #5607 )
...
* APIv4: /files/{file_id}/link
* updated public link
2017-03-11 19:24:44 -03:00
Saturnino Abril
28c218db3b
Implementation endpoint of APIv4: GET /files/{file_id}/thumbnail ( #5553 )
...
* APIv4: GET /files/{file_id}/thumbnail
* added delay time
2017-02-28 22:18:36 -03:00
Joram Wilander
91fe8bb2c0
Implement upload and get file endpoints for APIv4 ( #5396 )
...
* Implement POST /files endpoint for APIv4
* Implement GET /files/{file_id} endpoint for APIv4
2017-02-17 10:31:21 -05:00