CN110347641B - File processing method and device, storage medium and electronic device - Google Patents

File processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN110347641B
CN110347641B CN201910563718.4A CN201910563718A CN110347641B CN 110347641 B CN110347641 B CN 110347641B CN 201910563718 A CN201910563718 A CN 201910563718A CN 110347641 B CN110347641 B CN 110347641B
Authority
CN
China
Prior art keywords
file
target
processed
type
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910563718.4A
Other languages
Chinese (zh)
Other versions
CN110347641A (en
Inventor
冯刚
忻役
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201910563718.4A priority Critical patent/CN110347641B/en
Publication of CN110347641A publication Critical patent/CN110347641A/en
Application granted granted Critical
Publication of CN110347641B publication Critical patent/CN110347641B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats

Abstract

The invention discloses a file processing method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: determining file attributes of the file to be processed uploaded to the target page, wherein the file attributes comprise the file type of the file to be processed and the file content of the file to be processed; judging whether the file type of the file to be processed is the same as the target file type in the target page or not; and editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the target file type, the file content of the target file is arranged according to the target file type, and the file content of the file to be processed comprises the file content of the target file. The invention solves the technical problem of format conversion after file uploading in the related technology.

Description

File processing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a file processing method and device, a storage medium and an electronic device.
Background
In the development process of the page web system, besides the original data is manually imported into the system by a developer when the system is built, a separate data uploading inlet is separately provided on a web interface, so that a user can store new data into the system in subsequent use. But the existing web uploading mode can not convert the file into a uniform format.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a file processing method and device, a storage medium and an electronic device, which are used for at least solving the technical problem of format conversion after file uploading in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a file processing method including: determining file attributes of a file to be processed uploaded to a target page, wherein the file attributes comprise the file type of the file to be processed and the file content of the file to be processed; judging whether the file type of the file to be processed is the same as the target file type in the target page or not; and editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the target file type, the file content of the target file is arranged according to the target file type, and the file content of the file to be processed comprises the file content of the target file.
Optionally, before determining the file attribute of the file to be processed uploaded to the target page, the method further includes: and dragging the file to be processed to the target page through a dragging data interface in the target page, wherein the target page is a page supporting dragging and uploading of hypertext HTML 5.
Optionally, editing the file to be processed based on the determination result, and obtaining the target file includes: setting a header in the file to be processed as editable under the condition that the file type of the file to be processed is the same as the target file type in the target page and the target file type is a table type, wherein the header is the first row data of the file to be processed; editing the header into a target header in response to the editing operation on the header in the target page; and determining the target header and the contents of each column of files corresponding to the target header as the target file.
Optionally, editing the file to be processed based on the determination result, and obtaining the target file includes: setting a separator of the file to be processed under the condition that the file type of the file to be processed is different from the target file type in the target page, the target file type is a table type, and the file type of the file to be processed is a text type; dividing the file content in the file to be processed into a plurality of lines of data corresponding to the separators; and arranging the multiple rows of data in preset tables in the target page to obtain target tables so as to determine the target file, wherein the first row of tables in the target tables is the head of the target tables.
Optionally, before separating the file content in the file to be processed into a plurality of lines of data corresponding to the separators, the method further comprises: determining space characters in the file to be processed; and processing the continuous N space characters according to one space character under the condition that the space characters are continuous N space characters, wherein N is a natural number which is more than 1.
According to another aspect of the embodiments of the present invention, there is also provided a file processing apparatus including: the file processing device comprises a first determining module, a second determining module and a processing module, wherein the first determining module is used for determining file attributes of a file to be processed uploaded to a target page, and the file attributes comprise the file type of the file to be processed and the file content of the file to be processed; the judging module is used for judging whether the file type of the file to be processed is the same as the target file type in the target page or not; and the second determining module is used for editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the type of the target file, the file contents of the target file are arranged according to the type of the target file, and the file contents of the file to be processed comprise the file contents of the target file.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In the embodiment of the invention, the file attribute of the file to be processed uploaded to the target page is determined, wherein the file attribute comprises the file type of the file to be processed and the file content of the file to be processed; judging whether the file type of the file to be processed is the same as the target file type in the target page or not; and editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the target file type, the file content of the target file is arranged according to the target file type, and the file content of the file to be processed comprises the file content of the target file. The format conversion of the file uploaded to the target webpage can be realized. And further the technical problem of format conversion after file uploading in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a file processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a file processing method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a method of processing form data according to an embodiment of the invention;
FIG. 4 is a diagram of a method of processing text data according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a text data processing method according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a document processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking an example of the present invention running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a file processing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the file processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a file processing method is provided, and fig. 2 is a flowchart of a file processing method according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
step S202, determining the file attribute of the file to be processed uploaded to the target page, wherein the file attribute comprises the file type of the file to be processed and the file content of the file to be processed;
step S204, judging whether the file type of the file to be processed is the same as the target file type in the target page;
and S206, editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the target file type, the file content of the target file is arranged according to the target file type, and the file content of the file to be processed comprises the file content of the target file.
According to the method and the device, the file attribute of the file to be processed uploaded to the target page is determined, wherein the file attribute comprises the file type of the file to be processed and the file content of the file to be processed; judging whether the file type of the file to be processed is the same as the target file type in the target page or not; and editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the target file type, the file content of the target file is arranged according to the target file type, and the file content of the file to be processed comprises the file content of the target file. The format conversion of the file uploaded to the target webpage can be realized. And further the technical problem of format conversion after file uploading in the related technology is solved.
Alternatively, the execution subject of the above steps may be a server or the like, but is not limited thereto.
Optionally, the above may be applied to a scenario of processing a file, including but not limited to a web page. In this scenario, a pending file uploaded to the web page may be processed, where the pending file includes, but is not limited to, a form and text.
In an optional embodiment, before determining the file attribute of the file to be processed uploaded to the target page, the method further includes:
and S1, dragging the file to be processed to a target page through a dragging data interface in the target page, wherein the target page is a page supporting dragging of the uploaded hypertext HTML 5.
Optionally, in this embodiment, the file to be processed may be uploaded to the target page in a dragging manner. The Drag upload approach may use two attributes of HTML5, one for Drag and Drop and one for File API. The upload domain listens for three events of the drag: the dragEnter, dragOver and drop respectively correspond to processing mechanisms of three operations of dragging to, dragging and releasing, and also can monitor a dragLeave event. The File API of HTML5 provides a FileList interface that can obtain local File list information by dragging the File information delivered by e.datatransfer.
Optionally, the security of the to-be-processed file can be improved when the to-be-processed file is dragged and uploaded. The verification performed includes, but is not limited to: file type, suffix, size, etc., and more important background security policies.
Optionally, dragging the uploaded file can support data in multiple file formats. And data in the file needing to be dragged can be singly selected.
In an optional embodiment, editing the file to be processed based on the determination result, and obtaining the target file includes:
s1, setting the header of the file to be processed as editable under the condition that the file type of the file to be processed is the same as the target file type in the target page and the target file type is a table type, wherein the header is the first row data of the file to be processed;
s2, editing the header into a target header in response to the editing operation on the header in the target page;
s3, the target header and the contents of each column file corresponding to the target header are determined as the target file.
Optionally, in this embodiment, the table types include, but are not limited to: xls, xlsx, csv. As shown in fig. 3, the table type to be processed can be processed by the following steps:
1. manually editing or exporting the file to be processed in a form type by a system, and selecting the file to be processed for uploading by dragging or clicking;
2. and after the file to be processed is uploaded successfully, entering a data preview interface in the target page, and defaulting and reserving the data of the first line in the original data in the file to be processed as target header data in the file to be processed, so that the data in the target header can be edited.
Alternatively, since column information in source data in a file to be processed may be different from column information represented by the system, a function of editable column information is provided.
3. And saving the edited target header information, and clicking a 'next' button to save the processed target file, wherein the saved content comprises the type and the name of the target file.
By the embodiment, the files to be processed can be quickly uploaded at one time by using the drag attribute of the HTML 5. The header setting can be edited, and the header can be structurally displayed in subsequent query and check; and meanwhile, the uploading of the original data structure can be reserved.
In an optional embodiment, editing the file to be processed based on the determination result, and obtaining the target file includes:
s1, setting a separator of the file to be processed under the condition that the file type of the file to be processed is different from the target file type in the target page, the target file type is a table type, and the file type of the file to be processed is a text type;
s2, dividing the file content in the file to be processed into a plurality of lines of data corresponding to the separators;
and S3, arranging the data of multiple lines in a preset table in the target page to obtain a target table so as to determine the target file, wherein the first line of the target table is the head of the target table.
Optionally, in this embodiment, the text type includes, but is not limited to txt, doc, docx, pdf, eml.
As shown in fig. 4, the processing of the text type file to be processed includes the following steps, and the file to be processed is described by text data:
1. manually editing or exporting text data by a system, and selecting and uploading the file to be processed by dragging or clicking.
2. After the text data in the txt format is uploaded successfully, segmentation operation can be carried out on the text data in the txt format, and other text format data keep the original format as the text data; txt can input separators for data division, and the header of the divided table data is set to be editable.
3. And saving the edited header information, clicking a 'next' button to save a target file, wherein the target file comprises the type and the name of the target file, or directly saving the target file without division, and the target file is shown in figure 5.
By the embodiment, the required file data can be quickly uploaded at one time by using the drag attribute of the HTML 5. Particularly, for data of text type, such as data in txt format, data division can be performed at the front end, the data are divided into regular rows and columns (table data) according to specified separators, meanwhile, header information of the table data can be edited, information represented by the data is defined to be clear, and the data can be structurally displayed in subsequent query and check; meanwhile, the original data structure can be kept for uploading.
In an optional embodiment, before separating the file content in the file to be processed into a plurality of lines of data corresponding to the delimiters, the method further comprises:
s1, determining space characters in the file to be processed;
s2, if the space character is N consecutive space characters, processing the N consecutive space characters for each space character, where N is a natural number greater than 1.
Alternatively, in the present embodiment, for text data, since the meaning of a space cannot be clearly known due to space (blank) data in a text, when text data is divided, a plurality of columns of blank data are caused, and therefore, a plurality of space characters can be processed in a single space.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the invention, a file processing device for implementing the file processing method is also provided. As shown in fig. 6, the apparatus includes:
the first determining module 62 is configured to determine a file attribute of the to-be-processed file uploaded to the target page, where the file attribute includes a file type of the to-be-processed file and a file content of the to-be-processed file;
a judging module 64, configured to judge whether the file type of the file to be processed is the same as a target file type in the target page;
and the second determining module 66 is configured to edit the file to be processed based on the determination result to obtain the target file, where the file type of the target file is the same as the type of the target file, the file contents of the target file are arranged according to the type of the target file, and the file contents of the file to be processed include the file contents of the target file.
Optionally, the above may be applied to a scenario of processing a file, including but not limited to a web page. In this scenario, a pending file uploaded to the web page may be processed, where the pending file includes, but is not limited to, a form and text.
In an optional embodiment, the apparatus further includes a dragging module, configured to, before determining a file attribute of a to-be-processed file uploaded to a target page, drag the to-be-processed file to the target page through a dragging data interface in the target page, where the target page is a page supporting dragging of an uploaded hypertext HTML 5.
Optionally, in this embodiment, the file to be processed may be uploaded to the target page in a dragging manner. The Drag upload approach may use two attributes of HTML5, one for Drag and Drop and one for File API. The upload domain listens for three events of the drag: the dragEnter, dragOver and drop respectively correspond to processing mechanisms of three operations of dragging to, dragging and releasing, and also can monitor a dragLeave event. The File API of HTML5 provides a FileList interface that can obtain local File list information by dragging the File information delivered by e.datatransfer.
Optionally, the security of the to-be-processed file can be improved when the to-be-processed file is dragged and uploaded. The verification performed includes, but is not limited to: file type, suffix, size, etc., and more important background security policies.
Optionally, dragging the uploaded file can support data in multiple file formats. And data in the file needing to be dragged can be singly selected.
In an optional embodiment, the second determining module includes:
the first setting unit is used for setting a header in the file to be processed as editable under the condition that the file type of the file to be processed is the same as the target file type in the target page and the target file type is a table type, wherein the header is the first row data of the file to be processed;
the first editing unit is used for responding to the editing operation on the header in the target page and editing the header into a target header;
and the first determining unit is used for determining the target header and the file contents of each column corresponding to the target header as target files.
Optionally, in this embodiment, the table types include, but are not limited to: xls, xlsx, csv. As shown in fig. 3, the table type to be processed can be processed by the following steps:
1. manually editing or exporting the file to be processed in a form type by a system, and selecting the file to be processed for uploading by dragging or clicking;
2. and after the file to be processed is uploaded successfully, entering a data preview interface in the target page, and defaulting and reserving the data of the first line in the original data in the file to be processed as target header data in the file to be processed, so that the data in the target header can be edited.
Alternatively, since column information in source data in a file to be processed may be different from column information represented by the system, a function of editable column information is provided.
3. And saving the edited target header information, and clicking a 'next' button to save the processed target file, wherein the saved content comprises the type and the name of the target file.
By the embodiment, the files to be processed can be quickly uploaded at one time by using the drag attribute of the HTML 5. The header setting can be edited, and the header can be structurally displayed in subsequent query and check; and meanwhile, the uploading of the original data structure can be reserved.
In an optional embodiment, the second determining module includes:
the second setting unit is used for setting the separator of the file to be processed under the conditions that the file type of the file to be processed is different from the target file type in the target page, the target file type is a table type and the file type of the file to be processed is a text type;
the dividing unit is used for dividing the file content in the file to be processed into a plurality of lines of data corresponding to the separators;
and the second determining unit is used for arranging the data of the multiple lines in a preset table in the target page to obtain a target table so as to determine the target file, wherein the first line table in the target table is the head of the target table.
Optionally, in this embodiment, the text type includes, but is not limited to txt, doc, docx, pdf, eml.
As shown in fig. 4, the processing of the text type file to be processed includes the following steps, and the file to be processed is described by text data:
1. manually editing or exporting text data by a system, and selecting and uploading the file to be processed by dragging or clicking.
2. After the text data in the txt format is uploaded successfully, segmentation operation can be carried out on the text data in the txt format, and other text format data keep the original format as the text data; txt can input separators for data division, and the header of the divided table data is set to be editable.
3. And saving the edited header information, clicking a 'next' button to save a target file, wherein the target file comprises the type and the name of the target file, or directly saving the target file without division, and the target file is shown in figure 5.
By the embodiment, the required file data can be quickly uploaded at one time by using the drag attribute of the HTML 5. Particularly, for data of text type, such as data in txt format, data division can be performed at the front end, the data are divided into regular rows and columns (table data) according to specified separators, meanwhile, header information of the table data can be edited, information represented by the data is defined to be clear, and the data can be structurally displayed in subsequent query and check; meanwhile, the original data structure can be kept for uploading.
In an optional embodiment, the apparatus further includes a third determining module, configured to determine a space character in the document to be processed before dividing the document content in the document to be processed into a plurality of lines of data corresponding to the delimiters;
and the processing module is used for processing the continuous N space characters according to one space character under the condition that the space characters are the continuous N space characters, wherein N is a natural number which is more than 1.
Alternatively, in the present embodiment, for text data, since the meaning of a space cannot be clearly known due to space (blank) data in a text, when text data is divided, a plurality of columns of blank data are caused, and therefore, a plurality of space characters can be processed in a single space.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (6)

1. A file processing method, comprising:
determining file attributes of a file to be processed uploaded to a target page, wherein the file attributes comprise the file type of the file to be processed and the file content of the file to be processed;
judging whether the file type of the file to be processed is the same as the target file type in the target page or not;
editing the file to be processed based on a judgment result to obtain a target file, wherein the file type of the target file is the same as the type of the target file, the file content of the target file is arranged according to the type of the target file, and the file content of the file to be processed comprises the file content of the target file;
wherein, editing the file to be processed based on the judgment result to obtain the target file comprises: setting a separator of the file to be processed under the condition that the file type of the file to be processed is different from the target file type in the target page, the target file type is a table type, and the file type of the file to be processed is a text type; dividing the file content in the file to be processed into a plurality of lines of data corresponding to the separators; arranging the multiple rows of data in preset tables in the target page to obtain target tables so as to determine the target file, wherein a first row of tables in the target tables is a head of the target tables;
before determining the file attribute of the file to be processed uploaded to the target page, the method further comprises the following steps:
dragging the file to be processed to the target page through a dragging data interface in the target page, wherein the target page is a page supporting dragging and uploading of hypertext HTML 5; and verifying the safety of the file to be processed when the file to be processed is dragged and uploaded.
2. The method according to claim 1, wherein editing the file to be processed based on the determination result to obtain the target file comprises:
setting a header in the file to be processed as editable under the condition that the file type of the file to be processed is the same as the target file type in the target page and the target file type is a table type, wherein the header is the first row data of the file to be processed;
editing the header into a target header in response to the editing operation on the header in the target page;
and determining the target header and the contents of each column of files corresponding to the target header as the target file.
3. The method of claim 1, wherein prior to separating file content in the file to be processed into a plurality of lines of data corresponding to the separators, the method further comprises:
determining space characters in the file to be processed;
and processing the continuous N space characters according to one space character under the condition that the space characters are continuous N space characters, wherein N is a natural number which is more than 1.
4. A document processing apparatus, characterized by comprising:
the file processing device comprises a first determining module, a second determining module and a processing module, wherein the first determining module is used for determining file attributes of a file to be processed uploaded to a target page, and the file attributes comprise the file type of the file to be processed and the file content of the file to be processed;
the judging module is used for judging whether the file type of the file to be processed is the same as the target file type in the target page or not;
the second determining module is used for editing the file to be processed based on the judgment result to obtain a target file, wherein the file type of the target file is the same as the type of the target file, the file content of the target file is arranged according to the type of the target file, and the file content of the file to be processed comprises the file content of the target file;
the second determining module is further configured to set a separator of the to-be-processed file when the file type of the to-be-processed file is different from the target file type in the target page, the target file type is a table type, and the file type of the to-be-processed file is a text type; dividing the file content in the file to be processed into a plurality of lines of data corresponding to the separators; arranging the multiple rows of data in preset tables in the target page to obtain target tables so as to determine the target file, wherein a first row of tables in the target tables is a head of the target tables;
the device is further used for dragging the file to be processed to the target page through a dragging data interface in the target page, wherein the target page is a page supporting dragging and uploading of hypertext HTML 5; and verifying the safety of the file to be processed when the file to be processed is dragged and uploaded.
5. A storage medium having a computer program stored thereon, wherein the computer program is arranged to, when run, perform the method of any of claims 1 to 3.
6. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 3.
CN201910563718.4A 2019-06-26 2019-06-26 File processing method and device, storage medium and electronic device Active CN110347641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910563718.4A CN110347641B (en) 2019-06-26 2019-06-26 File processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910563718.4A CN110347641B (en) 2019-06-26 2019-06-26 File processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110347641A CN110347641A (en) 2019-10-18
CN110347641B true CN110347641B (en) 2022-04-26

Family

ID=68183252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910563718.4A Active CN110347641B (en) 2019-06-26 2019-06-26 File processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110347641B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751461A (en) * 2009-12-30 2010-06-23 中兴通讯股份有限公司 Document conversion method and device
CN106528744A (en) * 2016-10-28 2017-03-22 宁德时代新能源科技股份有限公司 Format conversion method and system
CN108984491A (en) * 2018-07-18 2018-12-11 沈文策 A kind of method and apparatus of document format conversion
CN109344371A (en) * 2018-08-01 2019-02-15 武汉开目信息技术股份有限公司 The generation method and device of gauge outfit
US10311076B1 (en) * 2016-10-26 2019-06-04 Open Invention Network, Llc Automated file acquisition, identification, extraction and transformation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751461A (en) * 2009-12-30 2010-06-23 中兴通讯股份有限公司 Document conversion method and device
US10311076B1 (en) * 2016-10-26 2019-06-04 Open Invention Network, Llc Automated file acquisition, identification, extraction and transformation
CN106528744A (en) * 2016-10-28 2017-03-22 宁德时代新能源科技股份有限公司 Format conversion method and system
CN108984491A (en) * 2018-07-18 2018-12-11 沈文策 A kind of method and apparatus of document format conversion
CN109344371A (en) * 2018-08-01 2019-02-15 武汉开目信息技术股份有限公司 The generation method and device of gauge outfit

Also Published As

Publication number Publication date
CN110347641A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN107895009B (en) Distributed internet data acquisition method and system
CN102446222B (en) Method, device and system of webpage content preloading
CN108052675A (en) Blog management method, system and computer readable storage medium
US9432484B1 (en) CIM-based data storage management system having a restful front-end
CN106227780B (en) A kind of the automation screenshot evidence collecting method and system of magnanimity webpage
CN102368261A (en) Expandable running maintenance report generation method
CN109815214B (en) Database access method, system, device and storage medium
CN107239701B (en) Method and device for identifying malicious website
CN102724184B (en) A kind of web page storage sharing method and server
CN105391587B (en) The Samba configuring management methods and system of a kind of network equipment
US11080322B2 (en) Search methods, servers, and systems
CN102752388A (en) Browser-based interactive system, browser-based interactive method, browser and cloud server
CN107656968A (en) High-volume business datum deriving method and system
CN110858192A (en) Log query method and system, log checking system and query terminal
CN105550179A (en) Webpage collection method and browser plug-in
CN107526755B (en) Data processing method and device
US20200204688A1 (en) Picture book sharing method and apparatus and system using the same
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN108108381B (en) Page monitoring method and device
CN113158118A (en) Page buried point data acquisition method, device and system
CN110347641B (en) File processing method and device, storage medium and electronic device
CN109992325B (en) Information display method, information display apparatus, storage medium, and electronic apparatus
CN104580298A (en) File uploading processing method and device
CN114466387B (en) Updating method and device of configuration file of base station, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant