diff --git a/file_force.module b/file_force.module
index 23cdbed..3efbe38 100755
--- a/file_force.module
+++ b/file_force.module
@@ -35,10 +35,17 @@ function file_force_file_download($uri) {
     return NULL;
   }
 
+  if ($_GET['download'] == 1) {
   // Return a list of headers that will force the download
-  return array(
-    'Content-Disposition' => 'attachment; filename="' . basename($uri) . '"',
-  );
+    return array(
+      'Content-Disposition' => 'attachment; filename="' . basename($uri) . '"',
+    );
+  }
+  else if ($_GET['download'] == 0) {
+    return array(
+      'Content-Disposition' =>' inline; filename="' . basename($uri) . '"',
+    );
+  }
 }
 
 /**
