From de7bbbb479b3eb11bc0f70c44305d019a81c41a2 Mon Sep 17 00:00:00 2001 From: Daniel Franklin Date: Tue, 31 Jan 2012 15:17:53 -0500 Subject: [PATCH] CC-3230: Show appropriate error message if disk is full when attempting to upload files via the web UI Modified the error message to prepend a The, simple change. --- airtime_mvc/application/models/StoredFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 9d445fa0f..d99058fa4 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -911,7 +911,7 @@ class Application_Model_StoredFile { if ($r === false) { #something went wrong likely there wasn't enough space in the audio_stor to move the file too. #warn the user that the file wasn't uploaded and they should check if there is enough disk space. - die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "File was not uploaded, this error will occur if the computer hard drive does not have enough disk space."}}'); + die('{"jsonrpc" : "2.0", "error" : {"code": 101, "message": "The file was not uploaded, this error will occur if the computer hard drive does not have enough disk space."}}'); } //$r = @copy($audio_file, $audio_stor);