Skip to main content
added 328 characters in body
Source Link
Steve Holland
  • 1.1k
  • 9
  • 24

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Edit: To clarify, Freeform just uses a standard EE File Upload destination and has a link within it's admin screens to view the uploaded file. I've tried creating a Destination which is above root, but that makes the file inaccessible from within the CP as well (unless I'm doing it wrong that is).

Edit 2: I seems if you try to access the file via the file manager in the CP it works fine if you have the upload destination above root. What isn't working is the link within Freeform itself. It uses the 'URL of Upload Directory' to link directly to the file. This results in a 404 if the destination is above the root.

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Edit: To clarify, Freeform just uses a standard EE File Upload destination and has a link within it's admin screens to view the uploaded file. I've tried creating a Destination which is above root, but that makes the file inaccessible from within the CP as well (unless I'm doing it wrong that is).

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Edit: To clarify, Freeform just uses a standard EE File Upload destination and has a link within it's admin screens to view the uploaded file. I've tried creating a Destination which is above root, but that makes the file inaccessible from within the CP as well (unless I'm doing it wrong that is).

Edit 2: I seems if you try to access the file via the file manager in the CP it works fine if you have the upload destination above root. What isn't working is the link within Freeform itself. It uses the 'URL of Upload Directory' to link directly to the file. This results in a 404 if the destination is above the root.

Added a bit more description for clarity.
Source Link
Steve Holland
  • 1.1k
  • 9
  • 24

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Edit: To clarify, Freeform just uses a standard EE File Upload destination and has a link within it's admin screens to view the uploaded file. I've tried creating a Destination which is above root, but that makes the file inaccessible from within the CP as well (unless I'm doing it wrong that is).

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.

Edit: To clarify, Freeform just uses a standard EE File Upload destination and has a link within it's admin screens to view the uploaded file. I've tried creating a Destination which is above root, but that makes the file inaccessible from within the CP as well (unless I'm doing it wrong that is).

Tweeted twitter.com/#!/StackExpression/status/275589268838162432
Source Link
Steve Holland
  • 1.1k
  • 9
  • 24

Securing Files uploaded with FreeForm

Does anyone know of a straightforward way of securing files which have been uploaded via Solspace FreeForm?

In a nutshell, what I'd like to have is files uploaded to a directory which isn't accessible to the general public, but is accessible once you have logged into the CP as an admin user.