I have tried multiple times to upload a Google verification file and each time after saving under the file column it shows none. If I click on edit I it shows that no file has been uploaded. I have checked the watchdog but it gives no clues to what the problem could be. I have also tried a Bing file and get the same result. Could this possibly be a file permission problem and if so where are the verification files uploaded and placed in the folder system.

CommentFileSizeAuthor
#3 image2.jpg28.85 KBRoad Kill
#3 image1.jpg24.58 KBRoad Kill
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Road Kill created an issue. See original summary.

kreynen’s picture

Priority: Critical » Normal

I'm not sure I understand what's happening well enough to reproduce the issue.

The uploaded files aren't actually used in the output so it shouldn't exist in sites/default/files or anywhere like that. The file is uploaded to the temp directory then the content of the file is imported into the textarea of the verification and then rendered at the path specified.

Is the textarea empty? If you copy the text out of the file into the textarea are you able to verify as expected?

Road Kill’s picture

FileSize
24.58 KB
28.85 KB

Hi Kreynen thank you for responding so quickly. I have upload two images to help explain the problem.

In image one you can see under the file column the file listed. In image two under the file column it shows no file listed even though I have uploaded files.

My concern is that the verification is not working now which is a big concern and this has now happened on two new websites. If I try to verify the files on the search console I get verification failed.

Grayle’s picture

We're having the same issue. We upload a file and save the form, no errors trigger, but the contents of the file aren't added to the textarea nor is the filename added to its field. When editing the verification, everything is empty.

Other file uploads work, so I don't think the problem is with tmp folder writability.

tompri’s picture

Have same problem. Choose google webmaster tool file and clicked save. Results are a google verification with no meta tag and None file. Has anyone successfully installed webmaster tool verification file?

tompri’s picture

Update: I used the Google alternate HTML tag method and it worked. Copied and pasted the resulting tag in the Verification META tag field and saved. Hope this helps.

tito.brasolin’s picture

It seems to me that the explanation is in the site_verify_edit_form_validate function: http://cgit.drupalcode.org/site_verify/tree/site_verify.admin.inc#n212

If you enter a filename in the form and upload a file, the name of the uploaded file will be ignored but its contents will be used.

jerry’s picture

I'm seeing the same behavior, which (I think) began with the 7.12 release. Prior to that, the name of the uploaded file would be saved as the value of the "File" field without it being entered explicitly. Since then, the file name must *also* be specified or that field is left blank.

Stacie_A’s picture

I can verify #8 It does work when you also put the the name of the file in the File Field. Otherwise, nothing gets saved.