Commit graph

16 commits

Author SHA1 Message Date
Jan Böhmer
d382021fee Moved attachment form submit logic to a seperate service. 2019-10-19 17:13:13 +02:00
Jan Böhmer
54986a9a52 Filter attachment name for uploaded filename. 2019-10-13 13:41:20 +02:00
Jan Böhmer
4fe10b6169 Uploaded (non secure) attachments live now in public/
That way the attachment files can now be loaded much quicker (without invoking a controller). Also added thumbnailing for pictures in tables.
2019-10-05 20:30:27 +02:00
Jan Böhmer
07dcbc0464 If a newly created attachment is a picture, then assign it as master picture if no master picture was set yet. 2019-10-03 15:31:55 +02:00
Jan Böhmer
6799ac90e5 Detect correctly if an attachment file is not existing. 2019-10-03 14:27:20 +02:00
Jan Böhmer
da46257757 Moved attachment path conversion functions to own service. 2019-09-28 16:06:37 +02:00
Jan Böhmer
ac238c65a0 Remove .. from attachments pathes, to prevent leaking of internal files. 2019-09-25 16:49:44 +02:00
Jan Böhmer
253adee35b Removed dump functions, to prevent exception in production. 2019-09-24 18:53:05 +02:00
Jan Böhmer
67fe47bbb9 Generate internal filenames based on attachment name.
The filename of the uploaded file is now safed in the database.
2019-09-24 18:39:11 +02:00
Jan Böhmer
eb1d8fd4e4 Added possibility to add/edit attachments on Admin pages. 2019-09-24 18:28:35 +02:00
Jan Böhmer
6b87823d5e Delete the file associated with an attachment after an attachment is delted or changed. 2019-08-27 22:24:56 +02:00
Jan Böhmer
87527dfdc6 Added an command which deletes all abandoned files created by attachments that dont exist anymore. 2019-08-27 18:54:02 +02:00
Jan Böhmer
09a5948149 Show infos about filename and filesize on attachment edit tab. 2019-08-26 23:46:38 +02:00
Jan Böhmer
3a11933a89 Allow to add/delete attachments via part edit page. 2019-08-26 23:30:35 +02:00
Jan Böhmer
408d98c6e1 Added database migration for new entities. 2019-08-12 18:04:53 +02:00
Jan Böhmer
01a83d388b Show attachments in part info
WIP: viewing and downloading attachments is not possible yet.
2019-08-06 18:47:09 +02:00