| Post |
|
Moderator
| cnymike posts 8 10:29 pm August 14, 2009
| |
|
|
Please replace the ??? with your data!
- URL to the FORM: http://???
- The browser used: ???
- cforms version: ???
- Your Wordpress version: ???
[desc]:With cForms 10.6 and a new install of WP 2.84, I'm having difficulty getting the absolute path for file uploads to be recognized.
cForms didn't find the path by itself and when I used Fetch to go to the attachments directory and then copied the Fetch URL and pasted it into the absolute path field in cForms, it sill wasn't recognized as a valid path.
Here is the path I used
/public_html/my-directory/wp-content/plugins/cforms/attachments
Not sure what I'm doing wrong here. _
|
|
|
Admin
| Oliver Munich, Germany posts 6237 8:39 am August 15, 2009
| |
|
|
looks ok, but what baffles me is that cforms can't find your absolute path, since it derives it from the actual file location which must be known.
try adding a new form, add an upload field to it and see if there is your path (as a default).
|
|
|
|
|
Guest
| cnymike 11:43 pm August 20, 2009
| |
|
|
Oliver, thanks for the reply and suggestion.
I created a new form as per your suggestion and added the file upload field. Sure enough, cForms figured out the correct path. That path differed significantly from the Fetch path though…
The path that cForms came up with was…
/home1/poisoni1/public_html/my-directory/wp-content/plugins/cforms/attachments
Fetchl used…
/public_html/my-directory/wp-content/plugins/cforms/attachments
Not sure why cForms didn't figure out a path in my original form. But if it happens again, I'll try to remember what I did leading up to that point.
Would it might work in the original form if I delete the form upload field, delete the erroneous attachments path,save, then attempt adding the file upload field again? I'll give that a go and see what happens.
|
|
|
Guest
| cnymike 11:51 pm August 20, 2009
| |
|
|
I went back to the original form, deleted the file upload field, deleted the attachment path and then saved the form. I then created a new field, and set it to be a file upload box and saved the form. cForms once again reported
Form settings updated.
Can't find the specified Upload Directory ! Please verify that it exists!
However when creating a new form with a file upload box, cForms seems to be able to resolve a correct path for the attachemnts directory.
Any ideas?
Here is the URL to the form… please note that I have manually pasted the correct attachments path into cForms, otherwise the error would have persisted.
http://www.capitolweddings.com…..-business/
Michael
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:20 am August 21, 2009
| |
|
|
that's right, the path is stored with the form not the field. once set, it stays with the form, upload field or not.
so you did the right thing, add a brand new form and copy & paste the path.
|
|
|
|
|
New Member | andyux posts 5 9:37 pm August 28, 2009
| |
|
|
http://ecoclients.com/~visualas/patient/
Can't find the specified Upload Directory ! Please verify that it exists!
im using
Upload directory URL (relative path/URL) :
/wp-content/patient-uploads/
which is
http://ecoclients.com/~visuala…..t-uploads/
but i get the error if use abs, rel or both. The forms submits and is received w/out error; no file on the server or attached to message, i tried both.
wp 2.8.2
cformsII v11
thanks Andy
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:01 pm August 30, 2009
| |
|
|
just follow post #3 above, that'll get you the absolute path to start with.
|
|
|
|
|
Guest
| Cheryl James 2:34 pm December 13, 2009
| |
|
|
I am getting the same error. My copy is not even trying to resolve the path.
I added a new form and added a new File Upload Box and get this error right away.
I have tried:
/htdocs/wp-content/plugins/cforms/attachments
/public_html/htdocs/wp-content/plugins/cforms/attachments
/wp-content/plugins/cforms/attachments
/htdocs/wp-content/uploads
/wp-content/uploads
/home/user/www/wp-content/uploads
Nothing works for me. Please help as this is the only reason I chose this plugin.
Thanks,
Cheryl
|
|
|
Member | drtanz posts 11 10:49 am December 17, 2009
| |
|
|
I cannot make it work either, where is the Fetch functionality, I cannot find anything that enables automatic fetching of the upload folder's url.
Help appreciated, thanks
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:44 am December 17, 2009
| |
|
|
simply adding a new (empty) form with an upload field will configure the proper path (for that form)
|
|
|
|
|
Member | drtanz posts 11 1:28 pm December 17, 2009
| |
|
|
I tried creating a new form and adding an upload field but the fields in the settings for upload were still blank
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:45 pm December 17, 2009
| |
|
|
very odd, could be a server issue/limitation. someone in the forum wrote a little PHP script that can help find out the folder cforms is in, from there you can then simply add your attachment folder and configure the path manually.
|
|
|
|
|
Member | drtanz posts 11 6:27 pm December 17, 2009
| |
|
|
could you give me a link to the script please?
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:11 am December 18, 2009
| |
|
|
|
|
Member | drtanz posts 11 9:40 am December 18, 2009
| |
|
|
been trying the search but cannot find this script unfortunately
|
|
|
Member | drtanz posts 11 3:10 pm December 20, 2009
| |
|
|
still trying to find this script unsuccessfully
|
|
|
Admin
| Oliver Munich, Germany posts 6237 10:29 pm December 21, 2009
| |
|
|

"upload directory" as a search phrase brought this link on the first page…
|
|
|
|
|
Member | drtanz posts 11 9:23 am December 22, 2009
| |
|
|
cheers got it workign now, sorry was searching for "php script" or something like that. I would also suggest that it is put into the FAQs as it's a very useful piece of code.
|
|
|
Guest
| jk_ 10:48 am December 27, 2009
| |
|
|
It works for me to retrieve the absolut path with <?php echo getcwd();?>
Thanks & Merry Christmas
|
|
|
Admin
| Oliver Munich, Germany posts 6237 4:05 pm December 27, 2009
| |
|
|
thanks, but this problem should have become a none issue with v11.2, which for new forms/upload fields should guess the path now correctly.
|
|
|
|