Warning: session_start(): open(/var/lib/php/sessions/sess_6v6t7dk37tnhlf4d33o1gdimka, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
There should be an easy way to upload source files to the snippets DB. Just put it up there, figure out what it is later.
Stuff to transmit:
-file contents
-file name
-path (probably a shortened one, not the full local path)
Also, of course, user ID and date, but TB will add that automatically.
First implementation idea:
-Use a new snippet type (Source file)
-Snippet name = path + file name
-Content = actual file contents
Further implementation details:
-Command in TB interpreter is: upload src//
-Outputs snippet ID
Second step:
-Show if file with same contents is in DB already.
-Or a file with same path.
-Or both? Then probably it's not wise to upload again. A brain might actually know.