I'm not sure if this is a bug or user error, but am unable to create a new quickfile node because I keep getting a "file does not exist" error.

I double checked the absolute path to my home directory, and everything looks fine. The path to my home directory is /home/f/fedev I created a folder there called "quickfiles" and put my "test.pdf" file in it. So I went with the following Quickfile settings:

Directory for quickfiles: /home/f/fedev/quickfiles
File path setting on the "Submit Quickfile" page: /home/f/fedev/quickfiles/test.pdf

Any idea what could be going wrong?

Here are a few details about my server environment:

Server Type Apache on Redhat Linux
Apache Version 1.3.33

PHP
--------
Version 4.4.4
Magic Quotes Off
Magic Quotes Runtime Off
Register Globals Off
Safe Mode Off

Extensions
CURL Support Enabled
GD Support enabled
dbx support enabled
GetText Support enabled
Multibyte Support enabled
MHASH support Enabled

Database
-----------
Type MySQL
Version 3.23.49

Comments

alexis’s picture

You just need to use the filename: test.pdf.

QuickFile adds the whole path to it.

Let me know if it works.

jeeves’s picture

Thanks. I tried cutting down the File Path setting on the node to just "test.pdf", but I am still getting the same error.

I made three screenshots of all the settings I am using. Can you take a look at the link below and see if I had misconfigured something?

My quickfile settings screengrabs

alexis’s picture

Hi, everything is fine with your settings, mine are the same.

Does Apache have read and execute permission for the quickfiles directory?, and at least execute for its parents? Try playing with permissions.

Does autocomplete work in the file path field?

Take a look at the code in quickfile.module, function quickfile_validate() starting around line 382, you can print some variables to your browser and find out how the process is working and what could be possibly wrong.

Please let us know.

Cheers.

thollowood’s picture

I had the same problem. In order to fix it this is what I did -

First, I created a folder on my file server titled "usr" . It is on the same directory level as my drupal folder. Then in "usr" I created seperate folders for each one of (in my case) my pdf files, and put only one file in each folder.

Then on my site, (I am running using 5x), I went to my admin/content quickfile settings and added my "directory for quickfiles" which is the path the my usr folder:

/home/mysite/usr/

Now, when I create a quickfile under "add content", for the "file path" I put the unique folder name the pdf is in, along with it's title, for example:

/gloves/gloves.pdf

Can't tell you why it works, but it does. Just putting all of the pdf files in /usr/ without another folder did not work. Also, trying to put files in a folder titled anything but /usr/ on the same level as my drupal folder was a bust as well.

Hope this is of use.

Sophia’s picture

I'm getting the exact same error; even the last solution does not seem to work at all. It keeps warning me that the file does not exist.

I am getting an error message when I am in the "File Path" field:

an http 404 error occurred. http://.../quickfile/autocomplete

Does that have to do with anything?

discursives’s picture

Title: Unable to create quickfile node because of "file doesn't exist" error » same thing here too...permissions?

alexis, can you say what permissions the folder has on your server? the module doesn't create the folder, so I did. How do I know what permissions apache has?

the folder i made has the same permissions as everythign else at this level, which is outside/above the www: drwxrwxr-x

a

discursives’s picture

Title: same thing here too...permissions? » bad directory path...fixed now, great module!
discursives’s picture

im getting that error, but its because of the configuration. the 404 error from the autocomplete portion of the module seems to require additional permissions.

for example, i have given a user role permissions to create quickfiles but not to administer the module.

now, when i log into the site as this user the quickfle automcplete generates this error.

anyone know anything about that?

discursives’s picture

Title: bad directory path...fixed now, great module! » users that can add quickfiles must have administer quickfiles permissions ...

in order to use the file automcomplete feature users must have that administration permissions.

its funny, though, since they cant see the menu item if they dont have "acces admin pages" permissions...well see how it goes!

duaelfr’s picture

Status: Active » Closed (won't fix)

This version of Quickfile is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.