what is the proper way to put file into the temporary storage with the Web Client? I use the 8.3.3.721 1C Enterprise version and I have file extension installed and attached.
I have tried:
1. FileDialog in open file mode - I can serch the file, then after file selecting the parameter FullFileName is still empty. Why? In thin client this same procedure works good. Without full Path I can not save file into temporary storage.
2. PutFile - does not work in Web Client in this version 1C (8.3.3.721) - somthing like this: "Method of the object is not found". In documentation this method is aviable in Web Client. Is any bug in this version?
3. PutFiles - the window searching files shows properly, I sel ect the file but the metod PutFiles returns false. I checked the placedFiles files parameter id Debug - its empty.
So I do not know how I should save files into temporary storage in Web Client mode.
I want to attach picture tho the product and maybe there is another way to choose file from local disc with the Web Client and then save it into the storage? I will be grateful for short example.
Yes, I have used these both methods ("InstallFileSystemExtension" and "AttachFileSystemExtension"). Here is my testing script. Please check it in Web Client.
Code
&AtClient
// Procedure - handler of command OpenFile.
//
Procedure OpenFile(Command)
var temp;
TempStorageAddress = "";
SelectedFile = "";
FileName = "Temp";
InstallFileSystemExtension();
temp = AttachFileSystemExtension(); // Here temp is true
Mode = FileDialogMode.Open;
OpeningFileDialog = New FileDialog(Mode);
OpeningFileDialog.FullFileName = "";
OpeningFileDialog.Multiselect = False;
OpeningFileDialog.Title = "Choose file";
If OpeningFileDialog.Choose() Then
temp = OpeningFileDialog.FullFileName;
DoMessageBox(temp); //Here temp parameter is empty
endif;
//Another way: by PutFile - here is the message "Method of the object is not found (PutFile)"
//I see it in Polish: "Metoda obiektu nie odnaleziona (PutFile)"
PutFile(TempStorageAddress, FileName, SelectedFile, True, UUID);
EndProcedure