I'm new to Drupal and I'm having trouble getting DBFM to work. My server is configured as follows:
Windows Server 2003 Standard Edition
IIS 6.0
PHP 5.2.8
MySQL 5.0.50sp1a
Drupal 5.15
DBFM 5.x-4.3
DAPI 5.x-1.0
DBFMgreybox 5.x-3.1
jstools 5.x-0.6
I can create folders. However, I can't add any files to the folders. From the "Upload File" form, I select a file and click on "Upload file". There is a few seconds delay (that increases with the size of the file) and then the "Upload File" form is displayed again with the fields reset. The file is never added to the database. There are no error messages that I can find.
Looking at the code, it seems that the database is updated in the "dbfm_form_upload_submit" function. However, this function never gets called. (This was verified by using a Watchdog function call within this function.)
Any help you can provide would be most appreciated.
Comments
Comment #1
geoff_eagles commentedNew to drupal? Your profile says you've been around for 5 months now - you're an old hand!
Your problem's got me beat, it's not something I've ever seen before - I need some more clues - though if we're not getting as far as the upload_submit I'm not sure where to look.
It sounds (from the variable delay) as though the file is actually being uploaded to the server. Both drupal validate (not implemented in this case) and submit happen after the file's been uploaded to the server ( a real pain, in php you can't check and limit filesize until you've actually uploaded the file!).
I take it you've checked things like permissions on the drupal tmp directory (and the file directory)?
Have you any other applications that upload files?
Comment #2
keenej commentedGeoff,
The issue has been resolved. It had to do with Clean URL's.
Since I'm running IIS, I modified IIS and settings.php per http://drupal.org/node/3854 in order to enable clean URL's. This seemed to work, but not really...
I just installed ISAPI_Rewrite version 3 lite from Helicon Tech ( http://www.helicontech.com/isapi_rewrite/ ) and configured my server based on http://www.iis-aid.com/articles/how_to_guides/using_drupal_clean_urls_ii...
...and now DBFM is working. :-)
Comment #3
geoff_eagles commentedThat'll teach you for not using Apache!